@@ -20,6 +20,8 @@ const cmdLineOptions = require("./scripts/build/options");
2020const copyright = "CopyrightNotice.txt" ;
2121const cleanTasks = [ ] ;
2222
23+ const testRunner = "./built/local/testRunner/_namespaces/Harness.js"
24+
2325const buildScripts = ( ) => buildProject ( "scripts" ) ;
2426task ( "scripts" , buildScripts ) ;
2527task ( "scripts" ) . description = "Builds files in the 'scripts' folder." ;
@@ -125,6 +127,8 @@ const localPreBuild = parallel(generateLibs, series(buildScripts, generateDiagno
125127const preBuild = cmdLineOptions . lkg ? lkgPreBuild : localPreBuild ;
126128
127129const buildServices = ( ( ) => {
130+ return cb => { console . log ( "!!!TODO!!! buildServices" ) ; cb ( ) ; } ;
131+
128132 // build typescriptServices.out.js
129133 const buildTypescriptServicesOut = ( ) => buildProject ( "src/typescriptServices/tsconfig.json" , cmdLineOptions ) ;
130134
@@ -249,6 +253,8 @@ task("watch-min").flags = {
249253} ;
250254
251255const buildLssl = ( ( ) => {
256+ return cb => { console . log ( "!!!TODO!!! buildLssl" ) ; cb ( ) ; } ;
257+
252258 // build tsserverlibrary.out.js
253259 const buildServerLibraryOut = ( ) => buildProject ( "src/tsserverlibrary/tsconfig.json" , cmdLineOptions ) ;
254260
@@ -442,8 +448,8 @@ preTest.displayName = "preTest";
442448
443449const postTest = ( done ) => cmdLineOptions . lint ? lint ( done ) : done ( ) ;
444450
445- const runTests = ( ) => runConsoleTests ( "built/local/run.js" , "mocha-fivemat-progress-reporter" , /*runInParallel*/ false , /*watchMode*/ false ) ;
446- task ( "runtests" , series ( preBuild , preTest , runTests , postTest ) ) ;
451+ const runTests = ( ) => runConsoleTests ( testRunner , "mocha-fivemat-progress-reporter" , /*runInParallel*/ false , /*watchMode*/ false ) ;
452+ task ( "runtests" , series ( /* preBuild, preTest,*/ runTests /* , postTest*/ ) ) ; // !!!TODO!!!
447453task ( "runtests" ) . description = "Runs the tests using the built run.js file." ;
448454task ( "runtests" ) . flags = {
449455 "-t --tests=<regex>" : "Pattern for tests to run." ,
@@ -462,8 +468,8 @@ task("runtests").flags = {
462468 " --shardId" : "1-based ID of this shard (default: 1)" ,
463469} ;
464470
465- const runTestsParallel = ( ) => runConsoleTests ( "built/local/run.js" , "min" , /*runInParallel*/ cmdLineOptions . workers > 1 , /*watchMode*/ false ) ;
466- task ( "runtests-parallel" , series ( preBuild , preTest , runTestsParallel , postTest ) ) ;
471+ const runTestsParallel = ( ) => runConsoleTests ( testRunner , "min" , /*runInParallel*/ cmdLineOptions . workers > 1 , /*watchMode*/ false ) ;
472+ task ( "runtests-parallel" , series ( /* preBuild, preTest,*/ runTestsParallel /* , postTest*/ ) ) ; // !!!TODO!!!
467473task ( "runtests-parallel" ) . description = "Runs all the tests in parallel using the built run.js file." ;
468474task ( "runtests-parallel" ) . flags = {
469475 " --no-lint" : "disables lint." ,
@@ -611,10 +617,10 @@ task("publish-nightly").description = "Runs `npm publish --tag next` to create a
611617// write some kind of trigger file that indicates build completion that we could listen for instead.
612618const watchRuntests = ( ) => watch ( [ "built/local/*.js" , "tests/cases/**/*.ts" , "tests/cases/**/tsconfig.json" ] , { delay : 5000 } , async ( ) => {
613619 if ( cmdLineOptions . tests || cmdLineOptions . failed ) {
614- await runConsoleTests ( "built/local/run.js" , "mocha-fivemat-progress-reporter" , /*runInParallel*/ false , /*watchMode*/ true ) ;
620+ await runConsoleTests ( testRunner , "mocha-fivemat-progress-reporter" , /*runInParallel*/ false , /*watchMode*/ true ) ;
615621 }
616622 else {
617- await runConsoleTests ( "built/local/run.js" , "min" , /*runInParallel*/ true , /*watchMode*/ true ) ;
623+ await runConsoleTests ( testRunner , "min" , /*runInParallel*/ true , /*watchMode*/ true ) ;
618624 }
619625} ) ;
620626task ( "watch" , series ( preBuild , preTest , parallel ( watchLib , watchDiagnostics , watchServices , watchLssl , watchTests , watchRuntests ) ) ) ;
0 commit comments