@dev-blinq/cucumber_client 1.0.1491-dev → 1.0.1493-dev
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.
|
@@ -19,11 +19,11 @@ export const projectDocument = (
|
|
|
19
19
|
const stepDefinition = new StepsDefinitions(folder, false);
|
|
20
20
|
stepDefinition.load(false, supressErrors, errors);
|
|
21
21
|
// read all the feature files in the project folder under features folder
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
const featuresDir = path.join(folder, "features");
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const allFiles = fs.readdirSync(featuresDir, { recursive: true });
|
|
25
|
+
const featureFiles = allFiles.filter((file) => file.endsWith(".feature"));
|
|
26
|
+
|
|
27
27
|
const documents = [];
|
|
28
28
|
for (const featureFile of featureFiles) {
|
|
29
29
|
const featureFilePath = path.join(folder, "features", featureFile);
|
|
@@ -41,28 +41,3 @@ export const projectDocument = (
|
|
|
41
41
|
}
|
|
42
42
|
return documents;
|
|
43
43
|
};
|
|
44
|
-
// let projectDir = process.argv[2];
|
|
45
|
-
|
|
46
|
-
// if (process.argv.length < 3) {
|
|
47
|
-
// // projectDir is mandatory, featureName and scenarioName are optional
|
|
48
|
-
// console.log(
|
|
49
|
-
// "Usage: node client/cucumber/project_to_document.js <projectDir> feature=<featureName> scenario=<scenarioName>"
|
|
50
|
-
// );
|
|
51
|
-
// process.exit(1);
|
|
52
|
-
// }
|
|
53
|
-
// let featureName = null;
|
|
54
|
-
// let scenarioName = null;
|
|
55
|
-
// // get the additional arguments
|
|
56
|
-
// for (let i = 3; i < process.argv.length; i++) {
|
|
57
|
-
// const arg = process.argv[i];
|
|
58
|
-
// if (arg.startsWith("feature=")) {
|
|
59
|
-
// featureName = arg.substring(8);
|
|
60
|
-
// } else if (arg.startsWith("scenario=")) {
|
|
61
|
-
// scenarioName = arg.substring(9);
|
|
62
|
-
// }
|
|
63
|
-
// }
|
|
64
|
-
// let errors = [];
|
|
65
|
-
// const documents = projectDocument(projectDir, featureName, scenarioName, true, errors);
|
|
66
|
-
// const args = process.argv.slice(2);
|
|
67
|
-
|
|
68
|
-
// console.log(JSON.stringify(documents));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-blinq/cucumber_client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1493-dev",
|
|
4
4
|
"description": " ",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@babel/traverse": "^7.27.1",
|
|
38
38
|
"@babel/types": "^7.27.1",
|
|
39
39
|
"@cucumber/tag-expressions": "^6.1.1",
|
|
40
|
-
"@dev-blinq/cucumber-js": "1.0.
|
|
40
|
+
"@dev-blinq/cucumber-js": "1.0.191-dev",
|
|
41
41
|
"@faker-js/faker": "^8.1.0",
|
|
42
42
|
"automation_model": "1.0.858-dev",
|
|
43
43
|
"axios": "^1.7.4",
|