From 9ce38228e86f292aa612ae5c7737dfceaedceda9 Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Sun, 25 Mar 2018 07:41:55 +0200 Subject: maint: Document how to get code coverage reports * HACKING : New section. --- HACKING | 8 ++++++++ 1 file changed, 8 insertions(+) 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. -- cgit v1.2.3