The Status of unit Test unit testing
Software testing is an important part of the software development process, which runs through the whole process, through unit testing, integration testing, validation testing, system testing and acceptance testing. Unit tests are the lowest level of testing, and are generally required by programmers themselves. So today I want to tell you about the unit tests I know.
I understand the process of unit testing
The first time you were in touch with unit testing was when you were watching an Android instructional video, and didn't know what the unit test was all about. The real understanding of unit testing is in the course of software testing. It focuses on the smaller structure blocks in the test program, a process, a class, and a page that can be used as an object for unit testing.
Tools for unit Testing
Different languages the corresponding unit test tools are also different. Take the example of C + + and Java, which now use more object-oriented programming languages. Java does unit testing using JUnit and C + + using Cunit.
I didn't learn C + + so I didn't use cunit, but I found some relevant information. Interested people can take a look at Cunit Official document: Http://cunit.sourceforge.net/doc/index.html. Of course, the official documents are all English, look at the more difficult words can also find some relevant blog on the Internet to see, a lot of writing is very good and easy to understand.
The JUnit web also has a lot of information, such as: http://blog.sina.com.cn/s/blog_8354dda80101ee8v.html about the examples used by junit and the differences between JUNIT3 and JUNIT4. Read a lot of information. When configuring JUnit to download the jar package and now the latest version of Eclipse has JUNIT3 and JUNIT4 jar package, just need to add, so it is very convenient to configure JUnit.
Documentation for unit tests
As with most processes in unit testing and software engineering, documentation is an important part of the documentation that needs to be delivered during the unit test delivery process:
1, "XXXX Unit test Plan"
2, "XXXX Unit Test Plan review Report"
3, "XXXX Unit test Case"
4. "XXXX Unit test case Review Report"
5, "XXXX Unit test Script"
6, "XXXX Unit Test script review Report"
7, "XXXX Unit test Report"
8, "XXXX Unit Test report Review Report"
9, "XXXX defect problem list"
Summarize
These are just the unit tests I know, and I know that the content is very small and not comprehensive. In the late learning process, I will continue to deepen the understanding of it, to supplement and improve the document.
Reference: Software Testing Tutorial
Http://wenku.baidu.com/link?url= Vwvadomd4jyuu5yefnehhlpsda5vf51m8a78eoaje3t-bjzteshl87peajztyigbmuk4k7g9cujr1xipn_i7gcamdab0rls5nodk_c8rb-e
Unit Test--Sixth week job