Skip to content

Commit 8c8b3e0

Browse files
committedMar 12, 2015
Add another culprit to failing tests: sandboxes
1 parent 41e131f commit 8c8b3e0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

Diff for: ‎README.md

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

9494
## Failing tests
95+
Scoverage does a lot of file writing behind the scenes in order to track which statements have been executed.
96+
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:
9597

96-
If you are running into a scenario where your tests normally pass, but fail when scoverage is enabled,
97-
then the most common culprit is timing issues on futures and other async operations. Scoverage does a lot of file
98-
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.
98+
* timing issues on futures and other async operations, try upping the timeouts by an order of magnitude.
99+
* tests are run in a sandbox mode (such as with `java.security.PrivilegedAction<T>`), try running the tests outside of the sandbox.
99100

100101
## Parallel test execution
101102

0 commit comments

Comments
 (0)
Please sign in to comment.