SummaryRefsLogTreeCommitDiffStats
path: root/HACKING
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2018-03-25 07:41:55 +0200
committerMathieu Lirzin <mthl@gnu.org>2018-03-25 07:44:01 +0200
commit9ce38228e86f292aa612ae5c7737dfceaedceda9 (patch)
tree2e87371491973541300731e5e20edfff84df7bde /HACKING
parent5023a8c7ca42121c3316a8e77045ff01a390ca27 (diff)
downloadmcron-9ce38228e86f292aa612ae5c7737dfceaedceda9.tar.gz
mcron-9ce38228e86f292aa612ae5c7737dfceaedceda9.tar.bz2
mcron-9ce38228e86f292aa612ae5c7737dfceaedceda9.zip
maint: Document how to get code coverage reports
* HACKING <Code coverage>: New section.
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING8
1 files changed, 8 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 039e9d1..e51515c 100644
--- a/HACKING
+++ b/HACKING
@@ -58,6 +58,14 @@ follows.
repositories by running "cd build-aux; ./gnu-fetch". In case any file in the
Mcron repository has been updated, commit and re-run the testsuite.
+* Code coverage
+
+ Assuming 'lcov' is installed, it is possible to check the actual code
+ coverage achieved by the test suite by running the following commands:
+
+ $ make check SCM_LOG_DRIVER_FLAGS="--coverage=yes"
+ $ genhtml tests/*.info --output-directory out
+
-----
Copyright © 2002-2017 Free Software Foundation, Inc.