@jsenv/test 1.7.0 → 1.7.2
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
CHANGED
|
@@ -4077,14 +4077,10 @@ const formatExecution = (
|
|
|
4077
4077
|
: {}),
|
|
4078
4078
|
};
|
|
4079
4079
|
let message = ``;
|
|
4080
|
-
|
|
4081
|
-
message += label;
|
|
4082
|
-
}
|
|
4080
|
+
message += label;
|
|
4083
4081
|
Object.keys(details).forEach((key) => {
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
}
|
|
4087
|
-
message += `${key}: ${details[key]}`;
|
|
4082
|
+
message += `
|
|
4083
|
+
${key}: ${details[key]}`;
|
|
4088
4084
|
});
|
|
4089
4085
|
if (consoleOutput) {
|
|
4090
4086
|
message += `\n${consoleOutput}`;
|
|
@@ -5342,14 +5338,8 @@ To fix this warning:
|
|
|
5342
5338
|
checkTitle: `Tests executions`,
|
|
5343
5339
|
checkSummary: `${executionSteps.length} files will be executed`,
|
|
5344
5340
|
});
|
|
5341
|
+
const annotations = [];
|
|
5345
5342
|
afterExecutionCallback = (afterExecutionInfo) => {
|
|
5346
|
-
const summary = stripAnsi(
|
|
5347
|
-
formatExecutionLabel(afterExecutionInfo, {
|
|
5348
|
-
logTimeUsage,
|
|
5349
|
-
logMemoryHeapUsage,
|
|
5350
|
-
}),
|
|
5351
|
-
);
|
|
5352
|
-
const annotations = [];
|
|
5353
5343
|
const { executionResult } = afterExecutionInfo;
|
|
5354
5344
|
const { errors = [] } = executionResult;
|
|
5355
5345
|
for (const error of errors) {
|
|
@@ -5359,11 +5349,6 @@ To fix this warning:
|
|
|
5359
5349
|
});
|
|
5360
5350
|
annotations.push(annotation);
|
|
5361
5351
|
}
|
|
5362
|
-
githubCheckRun.progress({
|
|
5363
|
-
title: "Jsenv test executions",
|
|
5364
|
-
summary,
|
|
5365
|
-
annotations,
|
|
5366
|
-
});
|
|
5367
5352
|
};
|
|
5368
5353
|
afterAllExecutionCallback = async ({ testPlanSummary }) => {
|
|
5369
5354
|
const title = "Jsenv test results";
|
|
@@ -5374,12 +5359,14 @@ To fix this warning:
|
|
|
5374
5359
|
await githubCheckRun.fail({
|
|
5375
5360
|
title,
|
|
5376
5361
|
summary,
|
|
5362
|
+
annotations,
|
|
5377
5363
|
});
|
|
5378
5364
|
return;
|
|
5379
5365
|
}
|
|
5380
5366
|
await githubCheckRun.pass({
|
|
5381
5367
|
title,
|
|
5382
5368
|
summary,
|
|
5369
|
+
annotations,
|
|
5383
5370
|
});
|
|
5384
5371
|
};
|
|
5385
5372
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/test",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@jsenv/url-meta": "8.1.0",
|
|
43
43
|
"@jsenv/utils": "2.0.1",
|
|
44
44
|
"@jsenv/github-check-run": "0.1.0",
|
|
45
|
-
"v8-to-istanbul": "9.1.
|
|
45
|
+
"v8-to-istanbul": "9.1.3",
|
|
46
46
|
"istanbul-lib-coverage": "3.2.0",
|
|
47
|
-
"istanbul-lib-instrument": "6.0.
|
|
47
|
+
"istanbul-lib-instrument": "6.0.1",
|
|
48
48
|
"istanbul-lib-report": "3.0.1",
|
|
49
49
|
"istanbul-reports": "3.1.6",
|
|
50
50
|
"@c88/v8-coverage": "0.1.1",
|
|
@@ -21,7 +21,7 @@ import { generateCoverageTextLog } from "../coverage/coverage_reporter_text_log.
|
|
|
21
21
|
import { assertAndNormalizeWebServer } from "./web_server_param.js";
|
|
22
22
|
import { executionStepsFromTestPlan } from "./execution_steps.js";
|
|
23
23
|
import { executeSteps } from "./execute_steps.js";
|
|
24
|
-
import {
|
|
24
|
+
import { formatSummary } from "./logs_file_execution.js";
|
|
25
25
|
import { githubAnnotationFromError } from "./github_annotation_from_error.js";
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -382,14 +382,8 @@ To fix this warning:
|
|
|
382
382
|
checkTitle: `Tests executions`,
|
|
383
383
|
checkSummary: `${executionSteps.length} files will be executed`,
|
|
384
384
|
});
|
|
385
|
+
const annotations = [];
|
|
385
386
|
afterExecutionCallback = (afterExecutionInfo) => {
|
|
386
|
-
const summary = stripAnsi(
|
|
387
|
-
formatExecutionLabel(afterExecutionInfo, {
|
|
388
|
-
logTimeUsage,
|
|
389
|
-
logMemoryHeapUsage,
|
|
390
|
-
}),
|
|
391
|
-
);
|
|
392
|
-
const annotations = [];
|
|
393
387
|
const { executionResult } = afterExecutionInfo;
|
|
394
388
|
const { errors = [] } = executionResult;
|
|
395
389
|
for (const error of errors) {
|
|
@@ -399,11 +393,6 @@ To fix this warning:
|
|
|
399
393
|
});
|
|
400
394
|
annotations.push(annotation);
|
|
401
395
|
}
|
|
402
|
-
githubCheckRun.progress({
|
|
403
|
-
title: "Jsenv test executions",
|
|
404
|
-
summary,
|
|
405
|
-
annotations,
|
|
406
|
-
});
|
|
407
396
|
};
|
|
408
397
|
afterAllExecutionCallback = async ({ testPlanSummary }) => {
|
|
409
398
|
const title = "Jsenv test results";
|
|
@@ -414,12 +403,14 @@ To fix this warning:
|
|
|
414
403
|
await githubCheckRun.fail({
|
|
415
404
|
title,
|
|
416
405
|
summary,
|
|
406
|
+
annotations,
|
|
417
407
|
});
|
|
418
408
|
return;
|
|
419
409
|
}
|
|
420
410
|
await githubCheckRun.pass({
|
|
421
411
|
title,
|
|
422
412
|
summary,
|
|
413
|
+
annotations,
|
|
423
414
|
});
|
|
424
415
|
};
|
|
425
416
|
}
|
|
@@ -118,14 +118,10 @@ export const formatExecution = (
|
|
|
118
118
|
: {}),
|
|
119
119
|
};
|
|
120
120
|
let message = ``;
|
|
121
|
-
|
|
122
|
-
message += label;
|
|
123
|
-
}
|
|
121
|
+
message += label;
|
|
124
122
|
Object.keys(details).forEach((key) => {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
message += `${key}: ${details[key]}`;
|
|
123
|
+
message += `
|
|
124
|
+
${key}: ${details[key]}`;
|
|
129
125
|
});
|
|
130
126
|
if (consoleOutput) {
|
|
131
127
|
message += `\n${consoleOutput}`;
|