노트 :

테스트주도개발(TDD, Test-driven Development) 본문

자격증

테스트주도개발(TDD, Test-driven Development)

IT_달토끼 2023. 2. 6. 09:20

 

Test-driven development (TDD) is a software development process relying on software requirements being converted to test cases before software is fully developed, and tracking all software development by repeatedly testing the software against all test cases. This is as opposed to software being developed first and test cases created later. Test-driven development is related to the test-first programming concepts of extreme programming, begun in 1999, but more recently has created more general interest in its own right.

 

1. TDD cycle

① Add a test

② Run all tests. The new test should fail for expected reasons

③ Write the simplest code that passes the new test

④ All tests should now pass

⑤ Refactor as needed

 

Way of Test-driven development(from wikipedia)

 

 

2. concept expansion: Test-driven Work

"Add a check" replaces "Add a test"
"Run all checks" replaces "Run all tests"
"Do the work" replaces "Write some code"
"Run all checks" replaces "Run tests"
"Clean up the work" replaces "Refactor code"
⑥ "Repeat"

 

 

 

source: wikipedia

 

'자격증' 카테고리의 다른 글

관계대수 및 관계해석  (0) 2023.02.07
Secure SDLC  (0) 2023.02.06
트러스트존 기술(TrustZone Technology)  (0) 2023.02.06
기억장치  (0) 2023.02.05
프로세스 제어 블록(PCB), 파일 제어 블록(FCB)  (0) 2023.02.05