COMFORT CallGraph tracks the execution of the tests and generates a call graph based on it. 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 .callgraph file is generated, which can then be used as input for the CallGraphLoader 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-callgraph --callgraph-package=<root_of_project_to_track> <path_to_tests>
- For pytest call:
py.test --callgraph=<root_of_project_to_track> <path_to_tests>