Skip to content

Commit c1a8714

Browse files
committed
add option to run either keyed or non-keyed
1 parent 10bee3f commit c1a8714

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

webdriver-ts/src/benchmarkRunner.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ async function main() {
296296
.boolean("headless")
297297
.default("headless", false)
298298
.boolean("smoketest")
299+
.string("type")
299300
.boolean("nothrottling")
300301
.default("nothrottling", false)
301302
.string("runner")
@@ -383,6 +384,14 @@ async function main() {
383384
(f) => f.keyed || config.BENCHMARK_RUNNER !== BenchmarkRunner.WEBDRIVER_AFTERFRAME
384385
);
385386

387+
if (args.type=='keyed') {
388+
runFrameworks = runFrameworks.filter((f) => f.keyed);
389+
console.log("run only keyed frameworks");
390+
} else if (args.type=='non-keyed') {
391+
runFrameworks = runFrameworks.filter((f) => !f.keyed);
392+
console.log("run only non-keyed frameworks");
393+
}
394+
386395
console.log("ARGS.smotest", args.smoketest);
387396
if (args.smoketest) {
388397
config.WRITE_RESULTS = false;

0 commit comments

Comments
 (0)