From fc383e025f09af70d3eb52fcd7e03c02733b14b0 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 8 Mar 2013 10:04:11 +0100 Subject: Document and put code coverage online * Document our testing practices * Put lcov code coverage output online --- doc/p11-kit-devel.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'doc') diff --git a/doc/p11-kit-devel.xml b/doc/p11-kit-devel.xml index af32c54..bbe6c0a 100644 --- a/doc/p11-kit-devel.xml +++ b/doc/p11-kit-devel.xml @@ -263,6 +263,28 @@ $ make install check for unexpected conditions. +
+ Testing and Code Coverage + + As a general rule changes to p11-kit should have a tests exercising + that change. Use the make check command to run all + the tests. If you run it from a subdirectory only the tests in that + directory will be run. + + Build p11-kit with the configure + option to build code coverage support. + + Once you've done that you can either use make coverage + to build code coverage information. Alternatively (and this is usually + easier) you can use + + git coverage to easily check whether + you've tested the lines changed by a patch. + + A code coverage report is + available online. +
+
Debugging Tips -- cgit v1.1