From 517f00b048cb4446665b3090fa12c7ec670bf6ab Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 1 Sep 2015 20:57:08 -0400 Subject: [PATCH] doc how to get code coverage for unit,integ,combined --- TESTING.asciidoc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/TESTING.asciidoc b/TESTING.asciidoc index 4329c88b59e..108c6ba9765 100644 --- a/TESTING.asciidoc +++ b/TESTING.asciidoc @@ -527,13 +527,27 @@ sudo bats $BATS/*.bats == Coverage analysis -To run tests instrumented with jacoco and produce a coverage report in -`target/site/jacoco/`: +Tests can be run instrumented with jacoco to produce a coverage report in +`target/site/jacoco/`. + +Unit test coverage: --------------------------------------------------------------------------- mvn -Dtests.coverage test jacoco:report --------------------------------------------------------------------------- +Integration test coverage: + +--------------------------------------------------------------------------- +mvn -Dtests.coverage -Dskip.unit.tests verify jacoco:report +--------------------------------------------------------------------------- + +Combined (Unit+Integration) coverage: + +--------------------------------------------------------------------------- +mvn -Dtests.coverage verify jacoco:report +--------------------------------------------------------------------------- + == Debugging from an IDE If you want to run elasticsearch from your IDE, you should execute ./run.sh