DCR - Developing - Software Testing
pytest is used as a software testing framework with the following plugins::
- pytest-cov for coverage reporting,
- pytest-deadfixture to list unused or duplicate fixtures, and
- pytest-random-order to randomise the order of the tests.
On the one hand, the tests must be as complete as possible, i.e. a test coverage of 100% is aimed for, but on the other hand, the scope of the test code should be minimal, i.e. unnecessary repetitions must be strictly avoided. The best strategy for this is to first create a test case for the normal case and then add special tests for the special cases not yet covered.
Finally, the tool Coveralls for Python is used to enable a connection to Coveralls.