@@ -31,7 +31,6 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
3131 const inspect = cmdLineOptions . inspect ;
3232 const runners = cmdLineOptions . runners ;
3333 const light = cmdLineOptions . light ;
34- const skipPercent = process . env . CI === "true" ? 0 : cmdLineOptions . skipPercent ;
3534 const stackTraceLimit = cmdLineOptions . stackTraceLimit ;
3635 const testConfigFile = "test.config" ;
3736 const failed = cmdLineOptions . failed ;
@@ -65,8 +64,8 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
6564 testTimeout = 400000 ;
6665 }
6766
68- if ( tests || runners || light || testTimeout || taskConfigsFolder || keepFailed || skipPercent !== undefined || shards || shardId ) {
69- writeTestConfigFile ( tests , runners , light , skipPercent , taskConfigsFolder , workerCount , stackTraceLimit , testTimeout , keepFailed , shards , shardId ) ;
67+ if ( tests || runners || light || testTimeout || taskConfigsFolder || keepFailed || shards || shardId ) {
68+ writeTestConfigFile ( tests , runners , light , taskConfigsFolder , workerCount , stackTraceLimit , testTimeout , keepFailed , shards , shardId ) ;
7069 }
7170
7271 const colors = cmdLineOptions . colors ;
@@ -90,8 +89,8 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
9089 else {
9190 args . push ( "--no-colors" ) ;
9291 }
93- if ( inspect ) {
94- args . unshift ( " --inspect-brk") ;
92+ if ( inspect !== undefined ) {
93+ args . unshift ( inspect == "" ? " --inspect-brk" : "--inspect-brk=" + inspect ) ;
9594 }
9695 else if ( debug ) {
9796 args . unshift ( "--debug-brk" ) ;
@@ -161,7 +160,6 @@ exports.cleanTestDirs = cleanTestDirs;
161160 * @param {string } tests
162161 * @param {string } runners
163162 * @param {boolean } light
164- * @param {string } skipPercent
165163 * @param {string } [taskConfigsFolder]
166164 * @param {string | number } [workerCount]
167165 * @param {string } [stackTraceLimit]
@@ -170,12 +168,11 @@ exports.cleanTestDirs = cleanTestDirs;
170168 * @param {number | undefined } [shards]
171169 * @param {number | undefined } [shardId]
172170 */
173- function writeTestConfigFile ( tests , runners , light , skipPercent , taskConfigsFolder , workerCount , stackTraceLimit , timeout , keepFailed , shards , shardId ) {
171+ function writeTestConfigFile ( tests , runners , light , taskConfigsFolder , workerCount , stackTraceLimit , timeout , keepFailed , shards , shardId ) {
174172 const testConfigContents = JSON . stringify ( {
175173 test : tests ? [ tests ] : undefined ,
176174 runners : runners ? runners . split ( "," ) : undefined ,
177175 light,
178- skipPercent,
179176 workerCount,
180177 stackTraceLimit,
181178 taskConfigsFolder,
0 commit comments