@@ -265,7 +265,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
265
265
private [this ] val failedTestSources = mutable.ArrayBuffer .empty[String ]
266
266
protected final def failTestSource (testSource : TestSource , reason : Option [String ] = None ) = synchronized {
267
267
val extra = reason.map(" with reason: " + _).getOrElse(" " )
268
- failedTestSources.append(testSource.title + s " failed (in ${testSource.name} ) " + extra)
268
+ failedTestSources.append(testSource.title + s " failed " + extra)
269
269
fail()
270
270
}
271
271
@@ -519,6 +519,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
519
519
}
520
520
521
521
case Failure (output) =>
522
+ echo(s " Test ' ${testSource.title}' failed with output: " )
522
523
echo(output)
523
524
failTestSource(testSource)
524
525
@@ -1018,6 +1019,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1018
1019
.getOrElse {
1019
1020
throw new IllegalStateException (" Unable to reflectively find calling method" )
1020
1021
}
1022
+ .takeWhile(_ != '$' )
1021
1023
}
1022
1024
1023
1025
/** Compiles a single file from the string path `f` using the supplied flags */
@@ -1072,7 +1074,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1072
1074
val targetDir = new JFile (outDir + " /" + sourceDir.getName + " /" )
1073
1075
targetDir.mkdirs()
1074
1076
1075
- val target = JointCompilationSource (callingMethod, randomized, flags, targetDir)
1077
+ val target = JointCompilationSource (s " compiling ' $f ' in test ' $ callingMethod' " , randomized, flags, targetDir)
1076
1078
new CompilationTest (target)
1077
1079
}
1078
1080
@@ -1089,7 +1091,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1089
1091
targetDir.mkdirs()
1090
1092
assert(targetDir.exists, s " couldn't create target directory: $targetDir" )
1091
1093
1092
- val target = JointCompilationSource (callingMethod, files.map(new JFile (_)).toArray, flags, targetDir)
1094
+ val target = JointCompilationSource (s " $testName from $ callingMethod" , files.map(new JFile (_)).toArray, flags, targetDir)
1093
1095
1094
1096
// Create a CompilationTest and let the user decide whether to execute a pos or a neg test
1095
1097
new CompilationTest (target)
0 commit comments