Skip to content

Commit e5f03a7

Browse files
committed
#61 - Small README.md update
1 parent be9d7ad commit e5f03a7

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,11 @@ If you want `mvn verify` and `mvn install` to check the coverage level, you have
353353
The reason for this is that SCoverage instruments classes during compilation and writes them to disk. We don't want to accidentally deploy these instrumented classes, so SCoverage keeps them separate. SCoverage does this by forking the current Maven build and running it again, while performing instrumentation. In a normal setup this causes the tests to be run twice: once in the outer run with the original classes and once in the SCoverage-forked run with the instrumented classes. To make sure the tests run only once, you have to configure your pom to turn off testing in the outer run and tell SCoverage to run all tests in the fork. This example shows the required configuration:
354354

355355
```xml
356-
<properties>
357-
<skipTests>true</skipTests> <!-- disable surefire tests -->
358-
</properties>
359-
360-
...
361-
362356
<project>
357+
<properties>
358+
<skipTests>true</skipTests> <!-- disable surefire and failsafe tests -->
359+
</properties>
360+
...
363361
<build>
364362
<plugins>
365363
<plugin>
@@ -370,7 +368,7 @@ The reason for this is that SCoverage instruments classes during compilation and
370368
<minimumCoverage>80</minimumCoverage>
371369
<failOnMinimumCoverage>true</failOnMinimumCoverage>
372370

373-
<!-- enable surefire tests in SCoverage -->
371+
<!-- enable surefire and failsafe tests in SCoverage -->
374372
<additionalForkedProjectProperties>skipTests=false</additionalForkedProjectProperties>
375373
</configuration>
376374
<executions>

0 commit comments

Comments
 (0)