diff --git a/cli.js b/cli.js index e05211da..cd1dd423 100644 --- a/cli.js +++ b/cli.js @@ -119,7 +119,7 @@ const printHelp = cliParams.delete("help"); const dumpTestList = cliParams.delete("dumpTestList"); if (cliArgs.length) { - let tests = cliParams.has("test") ? cliParams.get("tests").split(",") : [] + let tests = cliParams.has("test") ? cliParams.get("test").split(",") : [] tests = tests.concat(cliArgs); cliParams.set("test", tests.join(",")); } diff --git a/tests/run-shell.mjs b/tests/run-shell.mjs index dedb2cc6..8b061b94 100644 --- a/tests/run-shell.mjs +++ b/tests/run-shell.mjs @@ -81,6 +81,13 @@ const TESTS = [ return runCLITest("Grouped with Details", shell_binary, "SunSpider", "--group-details"); }, }, + { + name: "Test Flag With Positional Args", + tags: ["all", "main", "test-flag"], + run(shell_binary) { + return runCLITest("Test Flag With Positional Args", shell_binary, "--test=proxy-mobx", "proxy"); + }, + }, { name: "Disabled Suite", tags: ["all", "disabled"],