Skip to content
Jimmy Brisson edited this page Jun 14, 2016 · 1 revision

Progen has an automated test suite that may be run from the root directory of it's repo with the command nosetests -v --with-coverage --cover-package=project_generator. This is the command that the continuous integration (CI) server runs. The Tools prerequisites are listed in tests/requirements.txt and may be automatically installed with pip install -Ur tests/requirements.txt.

Test directory structure

The tests are broken up into modules that may be individually run with the python class path of that particular module. For example: the file test/test_commands/test_build.py corresponds to the invocation python -m unittest tests.test_commands.test_bulid

The individual tests are broken up as follows: the generic progen functionality is tested by tests/test_{function1|function2|...}.py; the commands passed to the progen command line are tested by tests/test_commands/test_{command1|command2|...} and the tools are tested in tests/test_tools/test_{toolname1|toolname2|...}.