@suffolklitlab/alkiln 5.1.0-sources-3 → 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.
@@ -17,10 +17,7 @@ function build_config(argv) {
17
17
  }
18
18
 
19
19
  let tags = argv[`_`];
20
- // if ( session_vars.get_origin() === `playground` ) {
21
- // tags = session_vars.get_tags();
22
- // }
23
-
20
+ console.log(`tags: ${JSON.stringify(tags)}, ${tags.length}`);
24
21
  if (tags.length > 0) {
25
22
  let joined_tags = '';
26
23
  // Cucumber expects tags in boolean expressions, like (@a0 or @a1) and @random.
@@ -38,7 +35,11 @@ function build_config(argv) {
38
35
  }
39
36
 
40
37
  provided_config.tags = joined_tags;
41
- } // end if there are tags
38
+ } //else {
39
+ // provided_config.tags = ''
40
+ // } // end if there are tags
41
+
42
+ console.log(`provided_config.tags: ${provided_config.tags}`);
42
43
 
43
44
  return provided_config;
44
45
  }; // Ends build_config()
@@ -50,7 +51,7 @@ function build_config(argv) {
50
51
  const environment = { cwd: process.cwd() };
51
52
  console.log("alkiln-run: environment: %o", environment);
52
53
 
53
- console.log(`command: ${process.argv}`);
54
+ console.log(`command: ${ process.argv }`);
54
55
 
55
56
  // process.argv is a list of strings of commands and args.
56
57
  let argv = require(`minimist`)( process.argv.slice(2), {
@@ -59,15 +60,9 @@ function build_config(argv) {
59
60
  sources: `./docassemble/*/data/sources`,
60
61
  // From playground: `/usr/share/docassemble/files/playgroundsources/<user_id>/<project>/*.feature`
61
62
  // From playground with S3: `/tmp/playgroundsources/<user_id>/<project>/*.feature`
62
-
63
- // // Installed in a user Playground
64
- // url: `<server>/interview?new_session=1&i=docassemble.playground<user_id><project>%3A`,
65
- // // server install: `<server>/interview?new_session=1&i=docassemble.<package>%3Adata/questions/`
66
63
  }
67
64
  });
68
65
 
69
- console.log(`argv: ${argv}`);
70
-
71
66
  let dir_exists = session_vars.set_sources_path( argv.sources );
72
67
  if ( !dir_exists ) {
73
68
  // If we don't throw, it'll be more confusing when no tests run
@@ -75,6 +70,7 @@ function build_config(argv) {
75
70
  }
76
71
 
77
72
  const provided_config = build_config( argv );
73
+ console.log(`provided_config: ${provided_config}`);
78
74
 
79
75
  const { runConfiguration } = await cucumber_api.loadConfiguration({
80
76
  provided: provided_config
@@ -38,14 +38,6 @@ session_vars.get_origin = function () {
38
38
  };
39
39
  session_vars.get_user_project_name = function () { return process.env._PROJECT_NAME || null; };
40
40
  session_vars.get_user_id = function () { return process.env._USER_ID || null; };
41
- session_vars.get_tags = function () {
42
- if ( process.env._TAGS ) {
43
- return process.env._TAGS.split(` `);
44
- } else {
45
- return [];
46
- }
47
- };
48
- session_vars.get_sources = function () { return process.env._ALKILN_SOURCES || null; };
49
41
 
50
42
  // More complex logic
51
43
  session_vars.get_server_reload_timeout = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suffolklitlab/alkiln",
3
- "version": "5.1.0-sources-3",
3
+ "version": "5.1.0-sources-5",
4
4
  "description": "Integrated automated end-to-end testing with docassemble, puppeteer, and cucumber.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {