@@ -43,7 +43,7 @@ Error.stackTraceLimit = 1000;
4343
4444const cmdLineOptions = minimist ( process . argv . slice ( 2 ) , {
4545 boolean : [ "debug" , "light" , "colors" , "lint" , "soft" ] ,
46- string : [ "browser" , "tests" , "host" , "reporter" ] ,
46+ string : [ "browser" , "tests" , "host" , "reporter" , "stackTraceLimit" ] ,
4747 alias : {
4848 d : "debug" ,
4949 t : "tests" ,
@@ -561,6 +561,7 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done:
561561 const debug = cmdLineOptions [ "debug" ] ;
562562 const tests = cmdLineOptions [ "tests" ] ;
563563 const light = cmdLineOptions [ "light" ] ;
564+ const stackTraceLimit = cmdLineOptions [ "stackTraceLimit" ] ;
564565 const testConfigFile = "test.config" ;
565566 if ( fs . existsSync ( testConfigFile ) ) {
566567 fs . unlinkSync ( testConfigFile ) ;
@@ -580,7 +581,7 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done:
580581 }
581582
582583 if ( tests || light || taskConfigsFolder ) {
583- writeTestConfigFile ( tests , light , taskConfigsFolder , workerCount ) ;
584+ writeTestConfigFile ( tests , light , taskConfigsFolder , workerCount , stackTraceLimit ) ;
584585 }
585586
586587 if ( tests && tests . toLocaleLowerCase ( ) === "rwc" ) {
@@ -759,8 +760,8 @@ function cleanTestDirs(done: (e?: any) => void) {
759760}
760761
761762// used to pass data from jake command line directly to run.js
762- function writeTestConfigFile ( tests : string , light : boolean , taskConfigsFolder ?: string , workerCount ?: number ) {
763- const testConfigContents = JSON . stringify ( { test : tests ? [ tests ] : undefined , light : light , workerCount : workerCount , taskConfigsFolder : taskConfigsFolder } ) ;
763+ function writeTestConfigFile ( tests : string , light : boolean , taskConfigsFolder ?: string , workerCount ?: number , stackTraceLimit ?: string ) {
764+ const testConfigContents = JSON . stringify ( { test : tests ? [ tests ] : undefined , light, workerCount, stackTraceLimit , taskConfigsFolder } ) ;
764765 console . log ( "Running tests with config: " + testConfigContents ) ;
765766 fs . writeFileSync ( "test.config" , testConfigContents ) ;
766767}
0 commit comments