[Original] what is test-driven development?
1. What is test-driven development?
Test-driven development (TDD) is a new development method different from the traditional software development process. It requires thatCodeFirst, write the test code, then write only the functional code that passes the test, and then use the test to promote the entire development process. This helps write concise, usable, and high-quality code and accelerates the development process.
2. How is test-driven development?
The basic idea of test-driven development is to write the test code before developing the function code, and then write only the functional code that passes the test to drive the entire development process. This helps you write concise, usable, and high-quality code with high flexibility and robustness. It can quickly respond to changes and accelerate the development process.
3. Test-driven process?
1. Define an applicationProgramRequirements
2. Be familiar with the functional areas of the application and determine the individual functional items or functional requirements to be used.
3. Create a test list for verification requirements
4. define interfaces and classes for functions or requirements
5. Write test code
6. run the test.
7. Generate product code based on test
8. Run the test again and modify the product code according to the test until all tests pass.
9 organize the code
10. Repeat the preceding steps.