mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
Merge pull request #7 from pcroch/feat-adding_jacoco_plugin
Feat adding jacoco plugin
This commit is contained in:
commit
93373b6a13
@ -13,3 +13,30 @@ For e.g. 10 days:
|
||||
```
|
||||
./gradlew -q text --args 10
|
||||
```
|
||||
|
||||
#### On Archlinux
|
||||
|
||||
run
|
||||
|
||||
sudo gradle -q text --args 30 > {Path}/texttests/ThirtyDays/stdout.gr
|
||||
|
||||
Where Path is the relative path to the texttests folder
|
||||
At each run, the stdout.gr will be updated
|
||||
|
||||
### test cases:
|
||||
|
||||
There are two unit tests:
|
||||
* GildedRoseTest
|
||||
* ItemTest
|
||||
|
||||
Run
|
||||
mvn clean test
|
||||
|
||||
### test coverage:
|
||||
|
||||
The test coverage can be found the files located in target/site/jacoco/*
|
||||
To see the file, you must run *mvn clean test* before
|
||||
|
||||
Element Missed Instructions Cov. Missed Branches Cov. Missed Cxty Missed Lines Missed Methods Missed Classes
|
||||
Total 18 of 287 93% 3 of 38 92% 4 29 1 44 1 10 0 2
|
||||
com.gildedrose 18269 93% 335 92% 4 29 1 44 1 10 0 2
|
||||
|
||||
19
Java/pom.xml
19
Java/pom.xml
@ -40,6 +40,25 @@
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${maven.maven-surefire-plugin.version}</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<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>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user