datagrok-tools 4.14.59 → 4.14.60
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/bin/commands/test-all.js +5 -1
- package/package.json +1 -1
package/bin/commands/test-all.js
CHANGED
|
@@ -79,7 +79,9 @@ async function testAll(args) {
|
|
|
79
79
|
(0, _testUtils.printBrowsersResult)(result, args.verbose);
|
|
80
80
|
}
|
|
81
81
|
if (args.csv) {
|
|
82
|
-
console.log(`Saving ${testsResults.length} results`);
|
|
82
|
+
console.log(`Saving ${testsResults.length} browsers results`);
|
|
83
|
+
for (const res of testsResults) console.log(`DEBUG: testAll: number of lines in csv ${res.csv.length}`);
|
|
84
|
+
console.log(`Saving ${testsResults.length} browsers results`);
|
|
83
85
|
(0, _testUtils.saveCsvResults)(testsResults.map(result => result.csv), csvReportDir);
|
|
84
86
|
}
|
|
85
87
|
return testsResults.every(test => !test.failed);
|
|
@@ -121,10 +123,12 @@ async function runTests(browsersOrder, browserOptions) {
|
|
|
121
123
|
browsersPromises.push((0, _testUtils.runBrowser)(browserCommands, browserOptions, browsersStarted++, testInvocationTimeout));
|
|
122
124
|
}
|
|
123
125
|
let resultObjects = await Promise.all(browsersPromises);
|
|
126
|
+
for (const res of resultObjects) console.log(`DEBUG: runTests BEFORE LOOP: number of lines in csv ${res.csv.length}`);
|
|
124
127
|
for (let i = 0; i < resultObjects.length; i++) {
|
|
125
128
|
resultObjects[i].csv = (0, _testUtils.addColumnToCsv)(resultObjects[i].csv, "browser", i);
|
|
126
129
|
resultObjects[i].csv = (0, _testUtils.addColumnToCsv)(resultObjects[i].csv, "stress_test", browserOptions.stressTest ?? false);
|
|
127
130
|
resultObjects[i].csv = (0, _testUtils.addColumnToCsv)(resultObjects[i].csv, "benchmark", browserOptions.benchmark ?? false);
|
|
128
131
|
}
|
|
132
|
+
for (const res of resultObjects) console.log(`DEBUG: runTests AFTER LOOP: number of lines in csv ${res.csv.length}`);
|
|
129
133
|
return resultObjects;
|
|
130
134
|
}
|
package/package.json
CHANGED