From 9f636d9d261bcc1302cbd1cdcd675eb37f83cf33 Mon Sep 17 00:00:00 2001 From: Yusuke Suzuki Date: Tue, 23 Sep 2025 09:26:37 -0700 Subject: [PATCH] Handle dumpTestList source params Right now, it is emitting a warning. We should suppress it by scanning this param as well since it is suppported one. --- params.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/params.js b/params.js index 37c22a66..fa043864 100644 --- a/params.js +++ b/params.js @@ -40,6 +40,7 @@ class Params { RAMification = false; dumpJSONResults = false; + dumpTestList = false; testIterationCountMap = new Map(); testWorstCaseCountMap = new Map(); @@ -60,16 +61,17 @@ class Params { this.prefetchResources = this._parseBooleanParam(sourceParams, "prefetchResources"); this.RAMification = this._parseBooleanParam(sourceParams, "RAMification"); this.dumpJSONResults = this._parseBooleanParam(sourceParams, "dumpJSONResults"); + this.dumpTestList = this._parseBooleanParam(sourceParams, "dumpTestList"); this.customPreIterationCode = this._parseStringParam(sourceParams, "customPreIterationCode"); this.customPostIterationCode = this._parseStringParam(sourceParams, "customPostIterationCode"); - this.startDelay = this._parseIntParam(sourceParams, "startDelay", 0); + this.startDelay = this._parseIntParam(sourceParams, "startDelay", 0); if (this.shouldReport && !this.startDelay) this.startDelay = 4000; for (const paramKey of ["tag", "tags", "test", "tests"]) - this.testList = this._parseTestListParam(sourceParams, paramKey); + this.testList = this._parseTestListParam(sourceParams, paramKey); this.testIterationCount = this._parseIntParam(sourceParams, "iterationCount", 1); this.testWorstCaseCount = this._parseIntParam(sourceParams, "worstCaseCount", 1); @@ -81,13 +83,13 @@ class Params { _parseTestListParam(sourceParams, key) { if (!sourceParams.has(key)) - return this.testList; + return this.testList; let testList = []; if (sourceParams?.getAll) { - testList = sourceParams?.getAll(key); + testList = sourceParams?.getAll(key); } else { - // fallback for cli sourceParams which is just a Map; - testList = sourceParams.get(key).split(","); + // fallback for cli sourceParams which is just a Map; + testList = sourceParams.get(key).split(","); } sourceParams.delete(key); if (this.testList.length > 0 && testList.length > 0)