testaro 58.1.1 → 58.1.3
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/package.json +1 -1
- package/run.js +4 -4
package/package.json
CHANGED
package/run.js
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
// Module to perform file operations.
|
|
33
33
|
const fs = require('fs/promises');
|
|
34
34
|
// Module to keep secrets.
|
|
35
|
-
require('dotenv').config();
|
|
35
|
+
require('dotenv').config({quiet: true});
|
|
36
36
|
// Module to validate jobs.
|
|
37
37
|
const {isBrowserID, isDeviceID, isURL, isValidJob, tools} = require('./procs/job');
|
|
38
38
|
// Module to standardize report formats.
|
|
@@ -583,11 +583,13 @@ const doActs = async (report, opts = {}) => {
|
|
|
583
583
|
if (report.jobData && ! report.jobData.aborted) {
|
|
584
584
|
let act = acts[actIndex];
|
|
585
585
|
const {type, which} = act;
|
|
586
|
+
const actSuffix = type === 'test' ? ` ${which}` : '';
|
|
587
|
+
const message = `>>>> ${type}${actSuffix}`;
|
|
586
588
|
// If granular reporting has been specified:
|
|
587
589
|
if (report.observe) {
|
|
588
|
-
// If a progress callback has been provided:
|
|
589
590
|
const whichParam = which ? `&which=${which}` : '';
|
|
590
591
|
const messageParams = `act=${type}${whichParam}`;
|
|
592
|
+
// If a progress callback has been provided:
|
|
591
593
|
if (onProgress) {
|
|
592
594
|
// Notify the observer of the act.
|
|
593
595
|
try {
|
|
@@ -600,8 +602,6 @@ const doActs = async (report, opts = {}) => {
|
|
|
600
602
|
}
|
|
601
603
|
// Otherwise, i.e. if no progress callback has been provided:
|
|
602
604
|
else {
|
|
603
|
-
const actSuffix = type === 'test' ? ` ${which}` : '';
|
|
604
|
-
const message = `>>>> ${type}${actSuffix}`;
|
|
605
605
|
// Notify the observer of the act and log it.
|
|
606
606
|
tellServer(report, messageParams, message);
|
|
607
607
|
}
|