doc how to get code coverage for unit,integ,combined
This commit is contained in:
parent
e5a02b1d96
commit
517f00b048
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue