testaro 8.1.2 → 8.1.4

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.
Files changed (3) hide show
  1. package/README.md +17 -1
  2. package/package.json +1 -1
  3. package/watch.js +9 -1
package/README.md CHANGED
@@ -709,7 +709,23 @@ In addition to their uses described above, environment variables can be used by
709
709
 
710
710
  Before executing a Testaro script, you can optionally also set `process.env.DEBUG` (to `'true'` or anything else) and/or `process.env.WAITS` (to a non-negative integer). The effects of these variables are described in the `run.js` file.
711
711
 
712
- You may store environment variables in an untracked `.env` file if you wish, and Testaro will recognize them.
712
+ You may store environment variables in an untracked `.env` file if you wish, and Testaro will recognize them. Here is a template for a `.env` file:
713
+
714
+ ```conf
715
+ URL_INJECT=yes
716
+ TENON_USER=you@yourdomain.tld
717
+ TENON_PASSWORD=yourTenonPassword
718
+ WAVE_KEY=yourwavekey
719
+ PROTOCOL=https
720
+ JOB_URL=yourserver.tld/job
721
+ REPORT_URL=yourserver.tld/report
722
+ SCRIPTDIR=../testing/scripts
723
+ REPORTDIR=../testing/reports/raw
724
+ JOBDIR=../testing/watch/ThisWorkstation
725
+ DONEDIR=../testing/done
726
+ AGENT=ThisWorkstation
727
+ DEBUG=false
728
+ ```
713
729
 
714
730
  ## Validation
715
731
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "8.1.2",
3
+ "version": "8.1.4",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/watch.js CHANGED
@@ -78,6 +78,10 @@ const checkNetJob = async () => {
78
78
  }
79
79
  });
80
80
  });
81
+ request.on('error', error => {
82
+ console.log(`ERROR checking for a network job (${error.message})`);
83
+ resolve({});
84
+ });
81
85
  request.end();
82
86
  });
83
87
  console.log(`Network job ${script.id ? '' : 'not '}found`);
@@ -127,9 +131,13 @@ const writeNetReport = async report => {
127
131
  });
128
132
  });
129
133
  report.agent = agent;
134
+ request.on('error', error => {
135
+ console.log(`ERROR submitting job report (${error.message})`);
136
+ resolve({});
137
+ });
130
138
  request.write(JSON.stringify(report, null, 2));
131
139
  request.end();
132
- console.log(`Report ${report.script.id} submitted`);
140
+ console.log(`Report ${report.job.id} submitted`);
133
141
  });
134
142
  return ack;
135
143
  };