Understanding of unit testing in software engineering

Source: Internet
Author: User

1. Unit testing should verify the correctness of the program on the most basic functions and parameters;

2. Unit tests should be written by the person most familiar with the code;

3. After the unit test, the state of the machine can remain unchanged;

4. Unit testing should be quick;

5. Unit tests should produce repeatable, consistent results;

6. Unit testing should maintain a certain degree of independence;

7. Unit tests should overwrite all code paths;

8. Unit testing should be integrated into the framework of automated testing;

9. Unit tests must be saved and maintained with the product code

Understanding of unit testing in software engineering

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.