@@ -10,6 +10,7 @@ const enum CompilerTestType {
1010
1111class CompilerBaselineRunner extends RunnerBase {
1212 private basePath = 'tests/cases' ;
13+ private testSuiteName : string ;
1314 private errors : boolean ;
1415 private emit : boolean ;
1516 private decl : boolean ;
@@ -24,16 +25,17 @@ class CompilerBaselineRunner extends RunnerBase {
2425 this . decl = true ;
2526 this . output = true ;
2627 if ( testType === CompilerTestType . Conformance ) {
27- this . basePath + = '/ conformance' ;
28+ this . testSuiteName = 'conformance' ;
2829 }
2930 else if ( testType === CompilerTestType . Regressions ) {
30- this . basePath + = '/ compiler' ;
31+ this . testSuiteName = 'compiler' ;
3132 }
3233 else if ( testType === CompilerTestType . Test262 ) {
33- this . basePath + = '/ test262' ;
34+ this . testSuiteName = 'test262' ;
3435 } else {
35- this . basePath + = '/ compiler' ; // default to this for historical reasons
36+ this . testSuiteName = 'compiler' ; // default to this for historical reasons
3637 }
38+ this . basePath += '/' + this . testSuiteName ;
3739 }
3840
3941 public checkTestCodeOutput ( fileName : string ) {
@@ -384,7 +386,7 @@ class CompilerBaselineRunner extends RunnerBase {
384386 }
385387
386388 public initializeTests ( ) {
387- describe ( 'Compiler tests', ( ) => {
389+ describe ( this . testSuiteName + ' tests', ( ) => {
388390 describe ( "Setup compiler for compiler baselines" , ( ) => {
389391 var harnessCompiler = Harness . Compiler . getCompiler ( ) ;
390392 this . parseOptions ( ) ;
0 commit comments