File: HACKING

package info (click to toggle)
lava-tool 0.25-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 612 kB
  • sloc: python: 4,411; makefile: 148; sh: 93
file content (17 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Tests Code Coverage
===================

To have a nicely HTML viewable report on tests code coverage, do as follows:

* Install `python-coverage` (`pip install coverage` in case you use pip)
* Run the following command:

    python-coverage run -m unittest lava_tool.tests.test_suite 2>/dev/null && python-coverage html

* The report will be saved in a directory called `lava_tool_coverage`: open 
the `index.html` file in there to see the report.

Notes:

 * To re-run the coverage report, you have to delete the `lava_tool_coverage`
directory first, otherwise `python-coverage` will fail.