@@ -1057,7 +1057,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1057
1057
}
1058
1058
1059
1059
/** Compiles a single file from the string path `f` using the supplied flags */
1060
- def compileFile (f : String , flags : TestFlags )( implicit outDirectory : String ): CompilationTest = {
1060
+ def compileFile (f : String , flags : TestFlags , outDirectory : String = defaultOutputDir ): CompilationTest = {
1061
1061
val callingMethod = getCallingMethod()
1062
1062
val sourceFile = new JFile (f)
1063
1063
val parent = sourceFile.getParentFile
@@ -1087,7 +1087,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1087
1087
* By default, files are compiled in alphabetical order. An optional seed
1088
1088
* can be used for randomization.
1089
1089
*/
1090
- def compileDir (f : String , flags : TestFlags , randomOrder : Option [Int ] = None )( implicit outDirectory : String ): CompilationTest = {
1090
+ def compileDir (f : String , flags : TestFlags , randomOrder : Option [Int ] = None , outDirectory : String = defaultOutputDir ): CompilationTest = {
1091
1091
val callingMethod = getCallingMethod()
1092
1092
val outDir = outDirectory + callingMethod + " /"
1093
1093
val sourceDir = new JFile (f)
@@ -1116,7 +1116,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1116
1116
* `testName` since files can be in separate directories and or be otherwise
1117
1117
* dissociated
1118
1118
*/
1119
- def compileList (testName : String , files : List [String ], flags : TestFlags , callingMethod : String = getCallingMethod())( implicit outDirectory : String ): CompilationTest = {
1119
+ def compileList (testName : String , files : List [String ], flags : TestFlags , callingMethod : String = getCallingMethod(), outDirectory : String = defaultOutputDir ): CompilationTest = {
1120
1120
val outDir = outDirectory + callingMethod + " /" + testName + " /"
1121
1121
1122
1122
// Directories in which to compile all containing files with `flags`:
@@ -1147,7 +1147,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1147
1147
* - Directories can have an associated check-file, where the check file has
1148
1148
* the same name as the directory (with the file extension `.check`)
1149
1149
*/
1150
- def compileFilesInDir (f : String , flags : TestFlags )( implicit outDirectory : String ): CompilationTest = {
1150
+ def compileFilesInDir (f : String , flags : TestFlags , outDirectory : String = defaultOutputDir ): CompilationTest = {
1151
1151
val callingMethod = getCallingMethod()
1152
1152
val outDir = outDirectory + callingMethod + " /"
1153
1153
val sourceDir = new JFile (f)
@@ -1167,7 +1167,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1167
1167
* sub-directories and as such, does **not** perform separate compilation
1168
1168
* tests.
1169
1169
*/
1170
- def compileShallowFilesInDir (f : String , flags : TestFlags )( implicit outDirectory : String ): CompilationTest = {
1170
+ def compileShallowFilesInDir (f : String , flags : TestFlags , outDirectory : String = defaultOutputDir ): CompilationTest = {
1171
1171
val callingMethod = getCallingMethod()
1172
1172
val outDir = outDirectory + callingMethod + " /"
1173
1173
val sourceDir = new JFile (f)
@@ -1185,6 +1185,9 @@ trait ParallelTesting extends RunnerOrchestration { self =>
1185
1185
}
1186
1186
1187
1187
object ParallelTesting {
1188
+
1189
+ def defaultOutputDir : String = " ../out/"
1190
+
1188
1191
def isSourceFile (f : JFile ): Boolean = {
1189
1192
val name = f.getName
1190
1193
name.endsWith(" .scala" ) || name.endsWith(" .java" )
0 commit comments