Automated Testing with Python - sc15000/python-testing-cookbook GitHub Wiki

Topic Page Description
unittest Basic Use of unittest The fundamentals of unittest - getting our first test script running
Test Preparation and Cleanup Introduces the setUp() and tearDown() methods for putting the DUT into a known configuration prior to running a test, and restoring it to its original state afterwards
Varying test output verbosity Simple means of varying the amount of detail printed on console as tests execute
Specifying particular tests to run from a given Test Case Easy method to name, from the command-line, particular tests to be run
Combining tests from various Test Cases into a list of suites
Alternative method for defining suites Test suites can be defined elsewhere, e.g. within module-scope functions, to then be used in __main__
Nominating a Test Suite from the Command-Line Test suites can be selected at the command-line, avoiding the need to open scripts and root around for hard-coded suite lists.
⚠️ **GitHub.com Fallback** ⚠️