@@ -1057,7 +1057,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
10571057 }
10581058
10591059 /** 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 = {
10611061 val callingMethod = getCallingMethod()
10621062 val sourceFile = new JFile (f)
10631063 val parent = sourceFile.getParentFile
@@ -1087,7 +1087,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
10871087 * By default, files are compiled in alphabetical order. An optional seed
10881088 * can be used for randomization.
10891089 */
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 = {
10911091 val callingMethod = getCallingMethod()
10921092 val outDir = outDirectory + callingMethod + " /"
10931093 val sourceDir = new JFile (f)
@@ -1116,7 +1116,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
11161116 * `testName` since files can be in separate directories and or be otherwise
11171117 * dissociated
11181118 */
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 = {
11201120 val outDir = outDirectory + callingMethod + " /" + testName + " /"
11211121
11221122 // Directories in which to compile all containing files with `flags`:
@@ -1147,7 +1147,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
11471147 * - Directories can have an associated check-file, where the check file has
11481148 * the same name as the directory (with the file extension `.check`)
11491149 */
1150- def compileFilesInDir (f : String , flags : TestFlags )( implicit outDirectory : String ): CompilationTest = {
1150+ def compileFilesInDir (f : String , flags : TestFlags , outDirectory : String = defaultOutputDir ): CompilationTest = {
11511151 val callingMethod = getCallingMethod()
11521152 val outDir = outDirectory + callingMethod + " /"
11531153 val sourceDir = new JFile (f)
@@ -1167,7 +1167,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
11671167 * sub-directories and as such, does **not** perform separate compilation
11681168 * tests.
11691169 */
1170- def compileShallowFilesInDir (f : String , flags : TestFlags )( implicit outDirectory : String ): CompilationTest = {
1170+ def compileShallowFilesInDir (f : String , flags : TestFlags , outDirectory : String = defaultOutputDir ): CompilationTest = {
11711171 val callingMethod = getCallingMethod()
11721172 val outDir = outDirectory + callingMethod + " /"
11731173 val sourceDir = new JFile (f)
@@ -1185,6 +1185,9 @@ trait ParallelTesting extends RunnerOrchestration { self =>
11851185}
11861186
11871187object ParallelTesting {
1188+
1189+ def defaultOutputDir : String = " ../out/"
1190+
11881191 def isSourceFile (f : JFile ): Boolean = {
11891192 val name = f.getName
11901193 name.endsWith(" .scala" ) || name.endsWith(" .java" )
0 commit comments