@jsenv/test 3.0.28 → 3.1.0
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/dist/jsenv_test.js +16 -15
- package/package.json +3 -3
- package/src/execution/reporters/reporter_list.js +16 -15
package/dist/jsenv_test.js
CHANGED
|
@@ -4946,14 +4946,16 @@ const renderIntro = (testPlanResult, logOptions) => {
|
|
|
4946
4946
|
? "/mock/"
|
|
4947
4947
|
: urlToFileSystemPath(testPlanResult.rootDirectoryUrl);
|
|
4948
4948
|
const numberOfFiles = Object.keys(testPlanResult.results).length;
|
|
4949
|
+
const { counters } = testPlanResult;
|
|
4950
|
+
const { planified } = counters;
|
|
4949
4951
|
|
|
4950
4952
|
let title;
|
|
4951
|
-
if (
|
|
4953
|
+
if (planified === 0) {
|
|
4952
4954
|
title = `no file to execute`;
|
|
4953
|
-
} else if (
|
|
4954
|
-
title = `1
|
|
4955
|
+
} else if (planified === 1) {
|
|
4956
|
+
title = `1 execution planified`;
|
|
4955
4957
|
} else {
|
|
4956
|
-
title = `${
|
|
4958
|
+
title = `${planified} executions planified`;
|
|
4957
4959
|
}
|
|
4958
4960
|
const lines = [];
|
|
4959
4961
|
lines.push(`directory: ${directory}`);
|
|
@@ -5335,8 +5337,16 @@ const renderOutro = (testPlanResult, logOptions = {}) => {
|
|
|
5335
5337
|
if (planified === 0) {
|
|
5336
5338
|
return "";
|
|
5337
5339
|
}
|
|
5340
|
+
let title;
|
|
5341
|
+
if (planified === 0) {
|
|
5342
|
+
title = `no execution`;
|
|
5343
|
+
} else if (planified === 1) {
|
|
5344
|
+
title = `1 execution done`;
|
|
5345
|
+
} else {
|
|
5346
|
+
title = `${planified} executions done`;
|
|
5347
|
+
}
|
|
5338
5348
|
return `${renderBigSection({
|
|
5339
|
-
title
|
|
5349
|
+
title,
|
|
5340
5350
|
content: renderOutroContent(testPlanResult, logOptions),
|
|
5341
5351
|
})}\n`;
|
|
5342
5352
|
};
|
|
@@ -5344,17 +5354,8 @@ const renderOutro = (testPlanResult, logOptions = {}) => {
|
|
|
5344
5354
|
const renderOutroContent = (testPlanResult, logOptions = {}) => {
|
|
5345
5355
|
const lines = [];
|
|
5346
5356
|
const { counters } = testPlanResult;
|
|
5347
|
-
const { planified } = counters;
|
|
5348
5357
|
|
|
5349
|
-
let executionLine =
|
|
5350
|
-
if (planified === 0) {
|
|
5351
|
-
executionLine += `no execution`;
|
|
5352
|
-
} else if (planified === 1) {
|
|
5353
|
-
executionLine += `1 execution: `;
|
|
5354
|
-
} else {
|
|
5355
|
-
executionLine += `${planified} executions: `;
|
|
5356
|
-
}
|
|
5357
|
-
executionLine += renderStatusRepartition(counters);
|
|
5358
|
+
let executionLine = `status: ${renderStatusRepartition(counters)}`;
|
|
5358
5359
|
lines.push(executionLine);
|
|
5359
5360
|
|
|
5360
5361
|
let durationLine = `duration: `;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/test",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@c88/v8-coverage": "0.1.1",
|
|
40
40
|
"@jsenv/abort": "4.3.0",
|
|
41
|
-
"@jsenv/ast": "6.0
|
|
41
|
+
"@jsenv/ast": "6.1.0",
|
|
42
42
|
"@jsenv/filesystem": "4.7.2",
|
|
43
43
|
"@jsenv/github-check-run": "0.1.16",
|
|
44
44
|
"@jsenv/humanize": "1.1.3",
|
|
45
|
-
"@jsenv/plugin-supervisor": "1.4.
|
|
45
|
+
"@jsenv/plugin-supervisor": "1.4.12",
|
|
46
46
|
"@jsenv/url-meta": "8.4.2",
|
|
47
47
|
"@jsenv/urls": "2.2.7",
|
|
48
48
|
"@jsenv/utils": "2.1.1",
|
|
@@ -213,14 +213,16 @@ const renderIntro = (testPlanResult, logOptions) => {
|
|
|
213
213
|
? "/mock/"
|
|
214
214
|
: urlToFileSystemPath(testPlanResult.rootDirectoryUrl);
|
|
215
215
|
const numberOfFiles = Object.keys(testPlanResult.results).length;
|
|
216
|
+
const { counters } = testPlanResult;
|
|
217
|
+
const { planified } = counters;
|
|
216
218
|
|
|
217
219
|
let title;
|
|
218
|
-
if (
|
|
220
|
+
if (planified === 0) {
|
|
219
221
|
title = `no file to execute`;
|
|
220
|
-
} else if (
|
|
221
|
-
title = `1
|
|
222
|
+
} else if (planified === 1) {
|
|
223
|
+
title = `1 execution planified`;
|
|
222
224
|
} else {
|
|
223
|
-
title = `${
|
|
225
|
+
title = `${planified} executions planified`;
|
|
224
226
|
}
|
|
225
227
|
const lines = [];
|
|
226
228
|
lines.push(`directory: ${directory}`);
|
|
@@ -602,8 +604,16 @@ const renderOutro = (testPlanResult, logOptions = {}) => {
|
|
|
602
604
|
if (planified === 0) {
|
|
603
605
|
return "";
|
|
604
606
|
}
|
|
607
|
+
let title;
|
|
608
|
+
if (planified === 0) {
|
|
609
|
+
title = `no execution`;
|
|
610
|
+
} else if (planified === 1) {
|
|
611
|
+
title = `1 execution done`;
|
|
612
|
+
} else {
|
|
613
|
+
title = `${planified} executions done`;
|
|
614
|
+
}
|
|
605
615
|
return `${renderBigSection({
|
|
606
|
-
title
|
|
616
|
+
title,
|
|
607
617
|
content: renderOutroContent(testPlanResult, logOptions),
|
|
608
618
|
})}\n`;
|
|
609
619
|
};
|
|
@@ -611,17 +621,8 @@ const renderOutro = (testPlanResult, logOptions = {}) => {
|
|
|
611
621
|
export const renderOutroContent = (testPlanResult, logOptions = {}) => {
|
|
612
622
|
const lines = [];
|
|
613
623
|
const { counters } = testPlanResult;
|
|
614
|
-
const { planified } = counters;
|
|
615
624
|
|
|
616
|
-
let executionLine =
|
|
617
|
-
if (planified === 0) {
|
|
618
|
-
executionLine += `no execution`;
|
|
619
|
-
} else if (planified === 1) {
|
|
620
|
-
executionLine += `1 execution: `;
|
|
621
|
-
} else {
|
|
622
|
-
executionLine += `${planified} executions: `;
|
|
623
|
-
}
|
|
624
|
-
executionLine += renderStatusRepartition(counters);
|
|
625
|
+
let executionLine = `status: ${renderStatusRepartition(counters)}`;
|
|
625
626
|
lines.push(executionLine);
|
|
626
627
|
|
|
627
628
|
let durationLine = `duration: `;
|