COMFORT Smother is a fork and massivly reduced version of Smother. After the installation, it provides one plug-in for nose and a second plugin for py.test. After you have called any of these test programs with your tests, a .comfortsmother file is generated, which can then be used as input for the TestCoverageLoader of the COMFORT framework. This file includes coverage information based on each test method that is executed.
From within the directory call
python setup.py install
From within the directory call
make test
You can just call your tests like always, but just including one/two more command line loaderOptions.
- For nose call:
nosetests --with-comfortsmother --comfortsmother-package=<root_of_project_to_track> <path_to_tests>
- For pytest call:
py.test --comfortsmother=<root_of_project_to_track> <path_to_tests>