Skip to content

Commit

Permalink
Create jacoco coverage report during quick test CIRC-959
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjohnson-kint committed Oct 23, 2020
1 parent f0b0297 commit e2f01d6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
19 changes: 19 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,25 @@
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.22.0</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
Expand Down
4 changes: 1 addition & 3 deletions quick-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#remove log output
rm tests.log

mvnTargets="clean org.jacoco:jacoco-maven-plugin:prepare-agent test"
mvnTargets="clean test surefire-report:report jacoco:report"
teeCommand="tee -a tests.log"

if [ -z "$1" ]
Expand All @@ -13,5 +13,3 @@ if [ -z "$1" ]
echo "Using test argument: $1"
mvn -Dtest=$1 $mvnTargets | $teeCommand
fi


0 comments on commit e2f01d6

Please sign in to comment.