@@ -22,6 +22,7 @@ import org.junit.runner.notification.Failure
22
22
import org .junit .runner .Description
23
23
import org .junit .runner .manipulation .{Filter => TestFilter , Filterable , NoTestsRemainException }
24
24
25
+ import java .util .concurrent .ConcurrentHashMap
25
26
import scala .collection .JavaConverters ._
26
27
import scala .collection .mutable
27
28
@@ -74,7 +75,7 @@ final class JUnitRunner(suiteClass: java.lang.Class[_ <: Suite]) extends org.jun
74
75
*/
75
76
val getDescription = createDescription(suiteToRun)
76
77
77
- private val excludedTests : mutable.Set [String ] = mutable. Set ()
78
+ private val excludedTests : mutable.Set [String ] = ConcurrentHashMap .newKeySet[ String ]().asScala
78
79
79
80
private def createDescription (suite : Suite ): Description = {
80
81
val description = Description .createSuiteDescription(suite.getClass)
@@ -104,10 +105,10 @@ final class JUnitRunner(suiteClass: java.lang.Class[_ <: Suite]) extends org.jun
104
105
val includedTests : Set [String ] = suiteToRun.testNames.diff(excludedTests)
105
106
val testTags : Map [String , Map [String , Set [String ]]] = Map (
106
107
suiteToRun.suiteId ->
107
- includedTests.map(test => test -> Set (" INCLUDE " )).toMap
108
+ includedTests.map(test => test -> Set (" org.scalatest.Selected " )).toMap
108
109
)
109
110
val filter = Filter (
110
- tagsToInclude = Some (Set (" INCLUDE " )),
111
+ tagsToInclude = Some (Set (" org.scalatest.Selected " )),
111
112
dynaTags = DynaTags (suiteTags = Map .empty, testTags = testTags)
112
113
)
113
114
// TODO: What should this Tracker be?
0 commit comments