@@ -43,7 +43,7 @@ Error.stackTraceLimit = 1000;
43
43
44
44
const cmdLineOptions = minimist ( process . argv . slice ( 2 ) , {
45
45
boolean : [ "debug" , "light" , "colors" , "lint" , "soft" ] ,
46
- string : [ "browser" , "tests" , "host" , "reporter" ] ,
46
+ string : [ "browser" , "tests" , "host" , "reporter" , "stackTraceLimit" ] ,
47
47
alias : {
48
48
d : "debug" ,
49
49
t : "tests" ,
@@ -561,6 +561,7 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done:
561
561
const debug = cmdLineOptions [ "debug" ] ;
562
562
const tests = cmdLineOptions [ "tests" ] ;
563
563
const light = cmdLineOptions [ "light" ] ;
564
+ const stackTraceLimit = cmdLineOptions [ "stackTraceLimit" ] ;
564
565
const testConfigFile = "test.config" ;
565
566
if ( fs . existsSync ( testConfigFile ) ) {
566
567
fs . unlinkSync ( testConfigFile ) ;
@@ -580,7 +581,7 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done:
580
581
}
581
582
582
583
if ( tests || light || taskConfigsFolder ) {
583
- writeTestConfigFile ( tests , light , taskConfigsFolder , workerCount ) ;
584
+ writeTestConfigFile ( tests , light , taskConfigsFolder , workerCount , stackTraceLimit ) ;
584
585
}
585
586
586
587
if ( tests && tests . toLocaleLowerCase ( ) === "rwc" ) {
@@ -759,8 +760,8 @@ function cleanTestDirs(done: (e?: any) => void) {
759
760
}
760
761
761
762
// 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 } ) ;
764
765
console . log ( "Running tests with config: " + testConfigContents ) ;
765
766
fs . writeFileSync ( "test.config" , testConfigContents ) ;
766
767
}
0 commit comments