Skip to content

Commit

Permalink
add option to run either keyed or non-keyed
Browse files Browse the repository at this point in the history
  • Loading branch information
krausest committed Nov 4, 2023
1 parent 10bee3f commit c1a8714
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions webdriver-ts/src/benchmarkRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ async function main() {
.boolean("headless")
.default("headless", false)
.boolean("smoketest")
.string("type")
.boolean("nothrottling")
.default("nothrottling", false)
.string("runner")
Expand Down Expand Up @@ -383,6 +384,14 @@ async function main() {
(f) => f.keyed || config.BENCHMARK_RUNNER !== BenchmarkRunner.WEBDRIVER_AFTERFRAME
);

if (args.type=='keyed') {
runFrameworks = runFrameworks.filter((f) => f.keyed);
console.log("run only keyed frameworks");
} else if (args.type=='non-keyed') {
runFrameworks = runFrameworks.filter((f) => !f.keyed);
console.log("run only non-keyed frameworks");
}

console.log("ARGS.smotest", args.smoketest);
if (args.smoketest) {
config.WRITE_RESULTS = false;
Expand Down

0 comments on commit c1a8714

Please sign in to comment.