From e466a200ed3d419feb393d33cbb29fd164fda5ad Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 5 Nov 2015 16:11:20 +0000 Subject: [PATCH] Add generating *.gov files locally steps --- docs/contributing.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/contributing.md b/docs/contributing.md index bb486a6db..f90f9b85b 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -274,3 +274,10 @@ To auto-convert to the above syntax you can put this in an .emacs file: ;; (c-set-offset 'template-args-cont 'c-lineup-template-args) +### Generating *.gcov files with LLVM/clang toolchain to check tests coverage + +* Ensure `llvm-cov` is available +* Build and link mapnik with `--coverage` and ensure optimisation is off and profile flags is present. For example pass following options to Scons: `CUSTOM_CXXFLAGS='--coverage -g -O0' LDFLAGS='--coverage'` +* Run test(s) e.g `./test/unit/run` +* To generate *.gcov file(s) run `llvm-cov gcov ` +* *.gcov files can be viewed in text editor