@suffolklitlab/alkiln 5.1.0-sources-4 → 5.1.0-sources-5
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/run_cucumber.js +9 -2
- package/package.json +1 -1
package/lib/run_cucumber.js
CHANGED
|
@@ -17,7 +17,7 @@ function build_config(argv) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
let tags = argv[`_`];
|
|
20
|
-
console.log(`tags: ${tags}`);
|
|
20
|
+
console.log(`tags: ${JSON.stringify(tags)}, ${tags.length}`);
|
|
21
21
|
if (tags.length > 0) {
|
|
22
22
|
let joined_tags = '';
|
|
23
23
|
// Cucumber expects tags in boolean expressions, like (@a0 or @a1) and @random.
|
|
@@ -35,7 +35,11 @@ function build_config(argv) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
provided_config.tags = joined_tags;
|
|
38
|
-
}
|
|
38
|
+
} //else {
|
|
39
|
+
// provided_config.tags = ''
|
|
40
|
+
// } // end if there are tags
|
|
41
|
+
|
|
42
|
+
console.log(`provided_config.tags: ${provided_config.tags}`);
|
|
39
43
|
|
|
40
44
|
return provided_config;
|
|
41
45
|
}; // Ends build_config()
|
|
@@ -47,6 +51,8 @@ function build_config(argv) {
|
|
|
47
51
|
const environment = { cwd: process.cwd() };
|
|
48
52
|
console.log("alkiln-run: environment: %o", environment);
|
|
49
53
|
|
|
54
|
+
console.log(`command: ${ process.argv }`);
|
|
55
|
+
|
|
50
56
|
// process.argv is a list of strings of commands and args.
|
|
51
57
|
let argv = require(`minimist`)( process.argv.slice(2), {
|
|
52
58
|
default: {
|
|
@@ -64,6 +70,7 @@ function build_config(argv) {
|
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
const provided_config = build_config( argv );
|
|
73
|
+
console.log(`provided_config: ${provided_config}`);
|
|
67
74
|
|
|
68
75
|
const { runConfiguration } = await cucumber_api.loadConfiguration({
|
|
69
76
|
provided: provided_config
|
package/package.json
CHANGED