Provide better readme

This commit is contained in:
Alexander Romanov 2021-01-28 12:51:44 +03:00 committed by GitHub
parent 43abb1c6b8
commit c0765ac4aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 1 deletions

View File

@ -1 +1,55 @@
# test-coverage-analysis-script # test-coverage-analysis-script
Groovy script to print test coverage analysis results from jacoco report to the console.
## Intended use:
Add `jacoco-maven-plugin` and `groovy-maven-plugin` to your pom file:
```xml
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<version>2.1.1</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
https://raw.githubusercontent.com/rbkmoney/test-coverage-analysis-script/master/script/TestCoverageAnalysis.groovy
</source>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
```
Enjoy:
![example.png](image/example.png)

BIN
image/example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB