@artilleryio/int-core 2.1.0-4c01280 → 2.1.0-5516ff0
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.
- package/lib/runner.js +9 -1
- package/package.json +2 -2
package/lib/runner.js
CHANGED
|
@@ -299,9 +299,17 @@ function runScenario(script, metrics, runState, contextVars) {
|
|
|
299
299
|
|
|
300
300
|
runState.compiledScenarios = _.map(
|
|
301
301
|
script.scenarios,
|
|
302
|
-
function (scenarioSpec) {
|
|
302
|
+
function (scenarioSpec, scenarioIndex) {
|
|
303
303
|
const name = scenarioSpec.engine || script.config.engine || 'http';
|
|
304
304
|
const engine = runState.engines.find((e) => e.__name === name);
|
|
305
|
+
|
|
306
|
+
if (typeof engine === 'undefined') {
|
|
307
|
+
const scenarioNameOrIndex = scenarioSpec.name || scenarioIndex;
|
|
308
|
+
throw new Error(
|
|
309
|
+
`Failed to run scenario "${scenarioNameOrIndex}": unknown engine "${name}". Did you forget to include it in "config.engines.${name}"?`
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
|
|
305
313
|
return engine.createScenario(scenarioSpec, runState.scenarioEvents);
|
|
306
314
|
}
|
|
307
315
|
);
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artilleryio/int-core",
|
|
3
|
-
"version": "2.1.0-
|
|
3
|
+
"version": "2.1.0-5516ff0",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@artilleryio/int-commons": "2.0.1-
|
|
6
|
+
"@artilleryio/int-commons": "2.0.1-5516ff0",
|
|
7
7
|
"@artilleryio/sketches-js": "^2.1.1",
|
|
8
8
|
"agentkeepalive": "^4.1.0",
|
|
9
9
|
"arrivals": "^2.1.2",
|