Skip to content

Commit beefa2e

Browse files
committed
Restore default value for parallelExecution in Test setting (closes #108)
1 parent 62c93cb commit beefa2e

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

Diff for: README.md

-10
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ If you are running into a scenario where your tests normally pass, but fail when
9494
then the most common culprit is timing issues on futures and other async operations. Scoverage does a lot of file
9595
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.
9696

97-
## Parallel test execution
98-
99-
Due to a bug in SBT, parallel text execution is disabled. You can enable it again by
100-
101-
```scala
102-
parallelExecution in Test := true,
103-
```
104-
105-
But if you run into an error like "cannot create classes.bak" note this is not an scoverage bug, but an SBT bug.
106-
10797
## Coveralls
10898

10999
If you have an open source project then you can add code coverage metrics with the excellent website http://coveralls.io. Scoverage will integrate with coveralls using the [sbt-coveralls](https://github.com/scoverage/sbt-coveralls) plugin.

Diff for: src/main/scala/scoverage/ScoverageSbtPlugin.scala

+2-7
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,7 @@ class ScoverageSbtPlugin extends sbt.AutoPlugin {
117117
coverageOutputHTML := true,
118118
coverageOutputCobertua := true,
119119
coverageOutputDebug := false,
120-
coverageCleanSubprojectFiles := true,
121-
122-
// disable parallel execution to work around "classes.bak" bug in SBT
123-
parallelExecution in Test := false,
124-
125-
parallelExecution in IntegrationTest := false
120+
coverageCleanSubprojectFiles := true
126121
)
127122

128123
private def postTestReport = {
@@ -250,4 +245,4 @@ class ScoverageSbtPlugin extends sbt.AutoPlugin {
250245

251246
s.log.info(s"All done. Coverage was [$cfmt%]")
252247
}
253-
}
248+
}

0 commit comments

Comments
 (0)