@@ -54,8 +54,10 @@ class SBTRunner(val config: RunnerSpec.Config,
54
54
else l.mkString(" " )
55
55
}
56
56
57
+ private val testSrcPath : String = config.optSourcePath orElse Option (srcDir) getOrElse PartestDefaults .sourcePath
58
+
57
59
val suiteRunner = new SuiteRunner (
58
- testSourcePath = config.optSourcePath orElse Option (srcDir) getOrElse PartestDefaults .sourcePath ,
60
+ testSourcePath = testSrcPath ,
59
61
new FileManager (testClassLoader = testClassLoader),
60
62
updateCheck = config.optUpdateCheck,
61
63
failed = config.optFailed,
@@ -66,14 +68,14 @@ class SBTRunner(val config: RunnerSpec.Config,
66
68
javaOpts = javaOpts,
67
69
scalacOpts = scalacOpts) { self =>
68
70
69
- override def onFinishTest (testFile : File , result : TestState ): TestState = {
71
+ override def onFinishTest (testFile : File , result : TestState , durationMs : Long ): TestState = {
70
72
self.synchronized {
71
73
eventHandler.handle(new Event {
72
- def fullyQualifiedName : String = testFile.testIdent
74
+ def fullyQualifiedName : String = scala.tools.partest.nest. PathSettings .testRoot.name + " / " + testSrcPath
73
75
def fingerprint : Fingerprint = partestFingerprint
74
76
def selector : Selector = new TestSelector (testFile.testIdent)
75
77
val (status, throwable) = makeStatus(result)
76
- def duration : Long = - 1
78
+ def duration : Long = durationMs
77
79
})
78
80
}
79
81
result
0 commit comments