[Original] what is test-driven development?

Source: Internet
Author: User

[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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.