Commit e6be19cd authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* HACKING (Running coverage tests): New section.

parent ba564af0
2011-02-10 Alexandre Duret-Lutz <>
* HACKING (Running coverage tests): New section.
2011-02-09 Alexandre Duret-Lutz <>
Previous patch did not work on MacOS X, and I don't have shell
......@@ -90,6 +90,30 @@ shorthand "libtool --mode=execute" as "libtool execute" or even
"libtool e".
Running coverage tests
First, compile (and link) Spot with coverage enabled.
% ./configure CXX='gcc --coverage'
% make
Then run the test suite (or any program you want to study).
% make check
Executing programs using Spot will generate a lot of *.gc* files
everywhere. Collect these using lcov:
% lcov --capture --directory src --output
Finally generate a coverage report in HTML:
% genhtml --legend --demangle-cpp --output-directory html
This should create the directory html/.
Coding conventions:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment