Skip to content

Commit 82f5ea7

Browse files
committed
Update Docker CLI: Enhance 'boost' plugin test suite selection logic
1 parent 717c1d7 commit 82f5ea7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/cli/commands/docker.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,12 @@ const buildExecCmd = argv => {
400400
case 'boost':
401401
unitTestArgs.plugin = 'jetpack-boost';
402402

403-
// Default to running only unit tests (excluding critical-css tests that require WorDBless)
404-
argv._.push( '--testsuite', 'unit' );
403+
if ( argv?.testsuite !== 'critical-css' ) {
404+
argv._.push( '--testsuite', 'unit' );
405+
} else {
406+
argv._.push( '--testsuite', 'critical-css' );
407+
argv._.push( '--bootstrap', 'tests/bootstrap-wordbless.php' );
408+
}
405409
break;
406410
case 'crm':
407411
unitTestArgs.plugin = 'zero-bs-crm';

0 commit comments

Comments
 (0)