Skip to content

Commit 73448ec

Browse files
committed
Merge pull request #99 from olafurpg/failing-tests-sandbox
Add another culprit to failing tests: sandboxes
2 parents e212757 + 8c8b3e0 commit 73448ec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,11 @@ ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := false
9393
```
9494

9595
## Failing tests
96+
Scoverage does a lot of file writing behind the scenes in order to track which statements have been executed.
97+
If you are running into a scenario where your tests normally pass, but fail when scoverage is enabled, then the culprit can be one of the following:
9698

97-
If you are running into a scenario where your tests normally pass, but fail when scoverage is enabled,
98-
then the most common culprit is timing issues on futures and other async operations. Scoverage does a lot of file
99-
writing behind the scenes in order to track which statements have been executed, and this slows down tests slighly, so try upping the timeouts by an order of magnitude.
99+
* timing issues on futures and other async operations, try upping the timeouts by an order of magnitude.
100+
* tests are run in a sandbox mode (such as with `java.security.PrivilegedAction<T>`), try running the tests outside of the sandbox.
100101

101102
## Coveralls
102103

0 commit comments

Comments
 (0)