@@ -705,33 +705,39 @@ gulp.task('testLib_NodeModules', gulp.series('testLib', function () {
705705gulp . task ( 'testResources' , gulp . parallel ( 'testLib_NodeModules' , 'ps1tests' , 'tstests' , 'copyTestData' ) ) ;
706706
707707gulp . task ( "test" , gulp . series ( "testResources" , function ( ) {
708- process . env [ 'TASK_TEST_TEMP' ] = path . join ( __dirname , _testTemp ) ;
708+ process . env [ 'TASK_TEST_TEMP' ] = path . join ( __dirname , _testTemp ) ;
709+
709710 shell . rm ( '-rf' , _testTemp ) ;
710711 shell . mkdir ( '-p' , _testTemp ) ;
711712
712- if ( options . suite . indexOf ( "ArtifactEngine" ) >= 0 && options . e2e ) {
713- var suitePath = path . join ( _testRoot , "Extensions/" + options . suite + "/**/*e2e.js" ) ;
713+ if ( options . suite . indexOf ( "ArtifactEngine" ) >= 0 && options . e2e ) {
714+ const suitePath = path . join ( _testRoot , "Extensions/" + options . suite + "/**/*e2e.js" ) ;
714715 console . log ( suitePath ) ;
715- var tfBuild = ( '' + process . env [ 'TF_BUILD' ] ) . toLowerCase ( ) == 'true'
716- return gulp . src ( [ suitePath ] )
716+ const tfBuild = process . env [ 'TF_BUILD' ] . toLowerCase ( ) == 'true' ;
717+ return gulp
718+ . src ( [ suitePath ] )
717719 . pipe ( mocha ( { reporter : 'spec' , ui : 'bdd' , useColors : ! tfBuild } ) ) ;
718720 }
719721
720722 if ( options . suite . indexOf ( "ArtifactEngine" ) >= 0 && options . perf ) {
721- var suitePath = path . join ( _testRoot , "Extensions/" + options . suite + "/**/*perf.js" ) ;
723+ const suitePath = path . join ( _testRoot , "Extensions/" + options . suite + "/**/*perf.js" ) ;
722724 console . log ( suitePath ) ;
723- var tfBuild = ( '' + process . env [ 'TF_BUILD' ] ) . toLowerCase ( ) == 'true'
724- return gulp . src ( [ suitePath ] )
725+ const tfBuild = process . env [ 'TF_BUILD' ] . toLowerCase ( ) == 'true' ;
726+ return gulp
727+ . src ( [ suitePath ] )
725728 . pipe ( mocha ( { reporter : 'spec' , ui : 'bdd' , useColors : ! tfBuild } ) ) ;
726729 }
727730
728- var suitePath = path . join ( _testRoot , "Extensions/" + options . suite + "/Tests/Tasks" , options . suite + '/_suite.js' ) ;
731+ const suitePath = path . join ( _testRoot , "Extensions/" + options . suite + "/Tests/Tasks" , options . suite + '/_suite.js' ) ;
729732 console . log ( suitePath ) ;
730- var suitePath2 = path . join ( _testRoot , "Extensions/" + options . suite + "/**/*Tests.js" ) ;
733+ const suitePath2 = path . join ( _testRoot , "Extensions/" + options . suite + "/**/*Tests.js" ) ;
731734 console . log ( suitePath2 ) ;
732- var tfBuild = ( '' + process . env [ 'TF_BUILD' ] ) . toLowerCase ( ) == 'true'
733- var ignorePath = "!" + path . join ( _testRoot , "Extensions" , "/**/UIContribution{,/**}" ) ;
734- return gulp . src ( [ suitePath , suitePath2 , ignorePath ] , { allowEmpty : true } )
735+
736+ const tfBuild = ( '' + process . env [ 'TF_BUILD' ] ) . toLowerCase ( ) == 'true'
737+ const ignorePath = "!" + path . join ( _testRoot , "Extensions" , "/**/UIContribution{,/**}" ) ;
738+
739+ return gulp
740+ . src ( [ suitePath , suitePath2 , ignorePath ] , { allowEmpty : true } )
735741 . pipe ( mocha ( { reporter : 'spec' , ui : 'bdd' , useColors : ! tfBuild } ) ) ;
736742} ) ) ;
737743
0 commit comments