diff --git a/Gulpfile.ts b/Gulpfile.ts index bff83fcbff690..04e251c4afeff 100644 --- a/Gulpfile.ts +++ b/Gulpfile.ts @@ -43,7 +43,7 @@ Error.stackTraceLimit = 1000; const cmdLineOptions = minimist(process.argv.slice(2), { boolean: ["debug", "light", "colors", "lint", "soft"], - string: ["browser", "tests", "host", "reporter"], + string: ["browser", "tests", "host", "reporter", "stackTraceLimit"], alias: { d: "debug", t: "tests", @@ -561,6 +561,7 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done: const debug = cmdLineOptions["debug"]; const tests = cmdLineOptions["tests"]; const light = cmdLineOptions["light"]; + const stackTraceLimit = cmdLineOptions["stackTraceLimit"]; const testConfigFile = "test.config"; if (fs.existsSync(testConfigFile)) { fs.unlinkSync(testConfigFile); @@ -580,7 +581,7 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done: } if (tests || light || taskConfigsFolder) { - writeTestConfigFile(tests, light, taskConfigsFolder, workerCount); + writeTestConfigFile(tests, light, taskConfigsFolder, workerCount, stackTraceLimit); } if (tests && tests.toLocaleLowerCase() === "rwc") { @@ -759,8 +760,8 @@ function cleanTestDirs(done: (e?: any) => void) { } // used to pass data from jake command line directly to run.js -function writeTestConfigFile(tests: string, light: boolean, taskConfigsFolder?: string, workerCount?: number) { - const testConfigContents = JSON.stringify({ test: tests ? [tests] : undefined, light: light, workerCount: workerCount, taskConfigsFolder: taskConfigsFolder }); +function writeTestConfigFile(tests: string, light: boolean, taskConfigsFolder?: string, workerCount?: number, stackTraceLimit?: string) { + const testConfigContents = JSON.stringify({ test: tests ? [tests] : undefined, light, workerCount, stackTraceLimit, taskConfigsFolder }); console.log("Running tests with config: " + testConfigContents); fs.writeFileSync("test.config", testConfigContents); } diff --git a/src/harness/tsconfig.json b/src/harness/tsconfig.json index a21faf9dd0745..c065623aed1f3 100644 --- a/src/harness/tsconfig.json +++ b/src/harness/tsconfig.json @@ -22,11 +22,25 @@ "../compiler/utilities.ts", "../compiler/binder.ts", "../compiler/checker.ts", + "../compiler/factory.ts", + "../compiler/visitor.ts", + "../compiler/transformers/ts.ts", + "../compiler/transformers/jsx.ts", + "../compiler/transformers/es7.ts", + "../compiler/transformers/es6.ts", + "../compiler/transformers/generators.ts", + "../compiler/transformers/destructuring.ts", + "../compiler/transformers/module/module.ts", + "../compiler/transformers/module/system.ts", + "../compiler/transformers/module/es6.ts", + "../compiler/transformer.ts", + "../compiler/comments.ts", "../compiler/sourcemap.ts", "../compiler/declarationEmitter.ts", "../compiler/emitter.ts", "../compiler/program.ts", "../compiler/commandLineParser.ts", + "../compiler/tsc.ts", "../compiler/diagnosticInformationMap.generated.ts", "../services/breakpoints.ts", "../services/navigateTo.ts",