Package: pari
Version: git
Severity: wishlist
Here is a patch that uses gcov and lcov for test coverage reporting; gcov
comes with gcc and does most of the work, while lcov is a separate program
that does the html formatting. Using them is simple: in the main pari
directory, execute
./Configure -gcov
make gcov
then in Oxxx.gcov
make test-all
make lcov-report
after which lcov-report/index.html is the starting point to the report.
On my test run, lcov reports that 6260 out of 7868 functions (79.6%) and
69180 out of 92279 lines (75.0%) are covered by test-all. These numbers may
be inaccurate because I didn't install any optional packages, but clearly
there is a lot of code that isn't tested by existing tests.