k6-cucumber-steps 1.0.4 → 1.0.6
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/.env +1 -1
- package/bin/k6-cucumber-runner.js +4 -6
- package/lib/index.js +5 -0
- package/package.json +4 -4
- package/reports/load-results.html +8 -1
- package/reports/load-results.json +231 -0
- package/step_definitions/load_test_steps.js +4 -4
- package/tmp/k6_script_47e2a318-0613-4ef5-a53b-834b50f52790.js +44 -0
- package/tmp/k6_script_4b8eec2f-49ea-4f44-bc8b-075a37784d1a.js +44 -0
- package/tmp/k6_script_8b3bbfa7-4fa6-4116-81ff-db61d60bafd3.js +44 -0
- package/libs/index.js +0 -21
- /package/{libs → lib}/helpers/buildK6Script.js +0 -0
- /package/{libs → lib}/helpers/generateHeaders.js +0 -0
- /package/{libs → lib}/helpers/resolveBody.js +0 -0
- /package/{libs → lib}/utils/k6Runner.js +0 -0
package/.env
CHANGED
|
@@ -29,8 +29,9 @@ const argv = require("yargs")
|
|
|
29
29
|
.help().argv;
|
|
30
30
|
|
|
31
31
|
const featureFilePath = path.resolve(process.cwd(), argv.feature);
|
|
32
|
-
const cucumberCommand = "
|
|
32
|
+
const cucumberCommand = "npx"; // Changed to "npx"
|
|
33
33
|
const cucumberArgs = [
|
|
34
|
+
"cucumber-js", // Now cucumber-js is an argument to npx
|
|
34
35
|
featureFilePath,
|
|
35
36
|
"--require-module",
|
|
36
37
|
"@babel/register",
|
|
@@ -57,11 +58,8 @@ if (argv.reporter) {
|
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
async function main() {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
" "
|
|
63
|
-
)}`
|
|
64
|
-
);
|
|
61
|
+
const fullCommand = `${cucumberCommand} ${cucumberArgs.join(" ")}`;
|
|
62
|
+
console.log(`Running Cucumber using command: ${fullCommand}`);
|
|
65
63
|
|
|
66
64
|
const cucumberProcess = spawn(cucumberCommand, cucumberArgs, {
|
|
67
65
|
cwd: process.cwd(),
|
package/lib/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "k6-cucumber-steps",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,12 +49,9 @@
|
|
|
49
49
|
"@babel/cli": "^7.27.0",
|
|
50
50
|
"@babel/core": "^7.26.10",
|
|
51
51
|
"@babel/preset-env": "^7.26.9",
|
|
52
|
-
"@cucumber/cucumber": "^11.2.0",
|
|
53
|
-
"@faker-js/faker": "^9.7.0",
|
|
54
52
|
"@types/k6": "^1.0.2",
|
|
55
53
|
"child_process": "^1.0.2",
|
|
56
54
|
"cucumber-html-reporter": "^6.0.0",
|
|
57
|
-
"dotenv": "^16.5.0",
|
|
58
55
|
"esbuild": "^0.25.3",
|
|
59
56
|
"form-data": "^4.0.2",
|
|
60
57
|
"k6": "^0.0.0",
|
|
@@ -62,6 +59,9 @@
|
|
|
62
59
|
},
|
|
63
60
|
"dependencies": {
|
|
64
61
|
"@babel/register": "^7.25.9",
|
|
62
|
+
"@cucumber/cucumber": "^11.2.0",
|
|
63
|
+
"@faker-js/faker": "^9.7.0",
|
|
64
|
+
"dotenv": "^16.5.0",
|
|
65
65
|
"yargs": "^17.7.2"
|
|
66
66
|
}
|
|
67
67
|
}
|