@artilleryio/int-core 2.6.0-5374048 → 2.6.0-88e686a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/runner.js +5 -1
  2. package/package.json +2 -2
package/lib/runner.js CHANGED
@@ -337,7 +337,11 @@ function runScenario(script, metrics, runState, contextVars, options) {
337
337
  if (options.scenarioName) {
338
338
  let foundIndex;
339
339
  const foundScenario = script.scenarios.filter((scenario, index) => {
340
- const hasScenario = new RegExp(options.scenarioName).test(scenario.name);
340
+ const hasScenarioByRegex = new RegExp(options.scenarioName).test(
341
+ scenario.name
342
+ );
343
+ const hasScenarioByName = scenario.name === options.scenarioName;
344
+ const hasScenario = hasScenarioByName || hasScenarioByRegex;
341
345
 
342
346
  if (hasScenario) {
343
347
  foundIndex = index;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@artilleryio/int-core",
3
- "version": "2.6.0-5374048",
3
+ "version": "2.6.0-88e686a",
4
4
  "main": "./index.js",
5
5
  "license": "MPL-2.0",
6
6
  "dependencies": {
7
- "@artilleryio/int-commons": "2.2.0-5374048",
7
+ "@artilleryio/int-commons": "2.2.0-88e686a",
8
8
  "@artilleryio/sketches-js": "^2.1.1",
9
9
  "agentkeepalive": "^4.1.0",
10
10
  "arrivals": "^2.1.2",