Unittests

I'm not a big fan of automatic test discovery, I rather determine what I want to test myself. Also because I generally do not want to do everything all at once.

To make it easier for myself I wrapped calling pytest through coverage with standard parameters in an small script called covtest.py.

/docs/scripts/unittests/covtest.png

To make it even easier I decided to gather the combinaties of testscripts and modules to test in a configuration file

/docs/scripts/unittests/rurc.png

This can be used by een script called run-unittests that runs covtest with a chosen combination.

/docs/scripts/unittests/run-unittests.png

You can even run this script outside of a project repository, provide that you specify the project name when caling the script.

I also built a script to generate a module containing templates for testroutines for a given module that you want to test.

/docs/scripts/unittests/build-unittests.png

The tests need to be completed because the script is not made to analyze what should be in them, just to generate some standard code for each function or method.