Skip to content

Commit 0daeb8c

Browse files
committed
Added code coverage reports
1 parent fbcdf30 commit 0daeb8c

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ If you use BPjs in an academic work, please consider citing it as:
6464
* :bug: Improved error reporting when trying to sync outside of a b-thread ([#174](https://github.com/bThink-BGU/BPjs/issues/174)).
6565
* :arrow_up: Informative error message when requesting a list of events and one of the events is `null` ([#184](https://github.com/bThink-BGU/BPjs/issues/184)).
6666
* :arrow_up: Loggins is turned off by default during verification. Call `BPjs.setLogDuringVerification(true)` to enable them again ([#160](https://github.com/bThink-BGU/BPjs/issues/160)).
67+
* :sparkles: Added local JACOCO code coverage reports.
6768

6869
### 2022-02 (Including the 1st BP Day Hackathon)
6970
* :part_alternation_mark: Calling `bp.sync` from global scope during runtime does not cause an ugly exception anymore ([#174](https://github.com/bThink-BGU/BPjs/issues/174)). The error is reported to the listeners.

pom.xml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,32 @@
143143
<version>0.8.8</version>
144144
<executions>
145145
<execution>
146-
<id>prepare-agent</id>
147-
<goals>
148-
<goal>prepare-agent</goal>
149-
</goals>
150-
</execution>
146+
<id>prepare-agent</id>
147+
<goals>
148+
<goal>prepare-agent</goal>
149+
</goals>
150+
</execution>
151+
<execution>
152+
<id>report</id>
153+
<phase>prepare-package</phase>
154+
<goals>
155+
<goal>report</goal>
156+
</goals>
157+
</execution>
158+
<execution>
159+
<id>post-unit-test</id>
160+
<phase>test</phase>
161+
<goals>
162+
<goal>report</goal>
163+
</goals>
164+
<configuration>
165+
<!-- Sets the path to the file which contains the execution data. -->
166+
167+
<dataFile>target/jacoco.exec</dataFile>
168+
<!-- Sets the output directory for the code coverage report. -->
169+
<outputDirectory>target/coverage-reports</outputDirectory>
170+
</configuration>
171+
</execution>
151172
</executions>
152173
</plugin>
153174
<!-- / Code Coverage -->

0 commit comments

Comments
 (0)