1 --- python unittest learn important concepts

Python unit testing framework untiltest initially inspired by the Junit, as unit testing framework with all other languages, have similar characteristics.

Unit testing framework, generally includes automated testing, shared configuration, the shutdown test, and a polymerization test to test suite, and test reports and the like independently.

unittest contains several important concepts, as follows:

1. test fixture test scaffolding can be understood as pre-conditions tested, or all of the preparatory work before the test is performed, or cleanup operations, such as creating a temporary database, folder or enable a service process and so on.

2. test case test, i.e., a separate testing unit, i.e., the input data in response to specific data checking, a base class can create test cases

3. test suit test kit, i.e. a set of cases or test suites used, or two or both.

4. test runner to run a test, a test execution and kits, output, results in graphical interface mode, the text interface or use case shows the results of execution by a value.

Guess you like

Origin www.cnblogs.com/dmtz/p/10966742.html