-
Book Overview & Buying
-
Table Of Contents
Supercharged Coding with GenAI
By :
Before you proceed to the next chapter, make sure that you can confidently answer the following questions:
Question 1: What are the advantages of TDD?
Answer: TDD, or test-driven development, is a methodology where the tests are written first, and the implementation code follows. The tests cover the range of required functionality and edge cases to ensure they meet expectations. Using TDD ensures that the tests are written and that the code (written by humans or GenAI) functions correctly. Empirical results show that the implementations are generally structured better and are more amenable to tests.
Question 2: If software includes both implementation and unit tests, does it need to be manually verified?
Answer: Without question, a full set of unit tests and correct implementation help identify failures or misinterpretations of the requirements. A failed test is likely due to a flawed test or a flawed implementation and provides an opportunity to review...