summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorJeremy C. Reed <jreed@isc.org>2010-12-27 20:08:09 +0100
committerJeremy C. Reed <jreed@isc.org>2010-12-27 20:08:09 +0100
commit12a331dc3dc5e5b98610619683bf5ffed50072a2 (patch)
tree3def278c97466835c8785f89cd1aec403da65048 /README
parentCompilation fix (removes possible warning) (diff)
parentcatch up to trunk, 2 conflicts. (diff)
downloadkea-12a331dc3dc5e5b98610619683bf5ffed50072a2.tar.xz
kea-12a331dc3dc5e5b98610619683bf5ffed50072a2.zip
For trac362
139. [build] jreed Introduced configure option and make targets for generating Python code coverage report. This adds new make targets: report-python-coverage and clean-python-coverage. The C++ code coverage targets were renamed to clean-cpp-coverage and report-cpp-coverage. (Trac #362, svn r4023) git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@4023 e5f2f494-b856-4b98-b285-d166d9295462
Diffstat (limited to 'README')
-rw-r--r--README41
1 files changed, 35 insertions, 6 deletions
diff --git a/README b/README
index 86b0d45b95..7134ebd828 100644
--- a/README
+++ b/README
@@ -93,26 +93,55 @@ Then run "make check" to run these tests.
TEST COVERAGE
+Code coverage reports may be generated using make. These are
+based on running on the unit tests. The resulting reports are placed
+in coverage-cpp-html and coverage-python-html directories for C++
+and Python, respectively.
+
The code coverage report for the C++ tests uses LCOV. It is available
-from http://ltp.sourceforge.net/. To generate your own HTML report,
+from http://ltp.sourceforge.net/. To generate the HTML report,
first configure BIND 10 with:
./configure --with-lcov
+The code coverage report for the Python tests uses coverage.py (aka
+pycoverage). It is available from http://nedbatchelder.com/code/coverage/.
+To generate the HTML report, first configure BIND 10 with:
+
+ ./configure --with-pycoverage
+
Doing code coverage tests:
make coverage
- Does the following:
+ Does the clean, perform, and report targets for C++ and Python.
make clean-coverage
- Zeroes the lcov code coverage counters and removes the coverage HTML.
+ Zeroes the code coverage counters and removes the HTML reports
+ for C++ and Python.
make perform-coverage
- Runs the C++ tests (using googletests framework).
+ Runs the C++ (using the googletests framework) and Python
+ tests.
make report-coverage
- Generates the coverage HTML, excluding some unrelated headers.
- The HTML reports are placed in a directory called coverage/.
+ Generates the coverage reports in HTML for C++ and Python.
+
+ make clean-cpp-coverage
+ Zeroes the code coverage counters and removes the HTML report
+ for the C++ tests.
+
+ make clean-python-coverage
+ Zeroes the code coverage counters and removes the HTML report
+ for the Python tests.
+
+ make report-cpp-coverage
+ Generates the coverage report in HTML for C++, excluding
+ some unrelated headers. The HTML reports are placed in a
+ directory called coverage-cpp-html/.
+
+ make report-python-coverage
+ Generates the coverage report in HTML for Python. The HTML
+ reports are placed in a directory called coverage-python-html/.
DEVELOPERS