@jsenv/test 3.4.1 → 3.4.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
|
@@ -9208,11 +9208,24 @@ const reportAsJunitXml = async (
|
|
|
9208
9208
|
const testCase = testSuite.createNode("testcase", {
|
|
9209
9209
|
file: fileRelativeUrl,
|
|
9210
9210
|
name: group,
|
|
9211
|
-
|
|
9212
|
-
|
|
9211
|
+
// duration of this execution
|
|
9212
|
+
time: mockFluctuatingValues
|
|
9213
9213
|
? "[mock]"
|
|
9214
|
-
:
|
|
9215
|
-
|
|
9214
|
+
: executionResult.status === "skipped"
|
|
9215
|
+
? 0
|
|
9216
|
+
: executionResult.timings.end,
|
|
9217
|
+
// Date and time of when the test run was executed
|
|
9218
|
+
...(executionResult.status === "skipped"
|
|
9219
|
+
? {}
|
|
9220
|
+
: {
|
|
9221
|
+
timestamp: mockFluctuatingValues
|
|
9222
|
+
? "[mock]"
|
|
9223
|
+
: new Date(executionResult.timings.origin)
|
|
9224
|
+
.toISOString()
|
|
9225
|
+
.slice(0, -5),
|
|
9226
|
+
}),
|
|
9227
|
+
// Total number of tests for this execution
|
|
9228
|
+
tests: 1,
|
|
9216
9229
|
});
|
|
9217
9230
|
testSuite.appendChild(testCase);
|
|
9218
9231
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/test",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@jsenv/ast": "6.2.16",
|
|
42
42
|
"@jsenv/exception": "1.1.2",
|
|
43
43
|
"@jsenv/filesystem": "4.10.2",
|
|
44
|
-
"@jsenv/github-check-run": "0.
|
|
44
|
+
"@jsenv/github-check-run": "0.2.0",
|
|
45
45
|
"@jsenv/humanize": "1.2.8",
|
|
46
46
|
"@jsenv/plugin-supervisor": "1.5.18",
|
|
47
47
|
"@jsenv/sourcemap": "1.2.23",
|
|
@@ -25,7 +25,6 @@ import {
|
|
|
25
25
|
import { memoryUsage } from "node:process";
|
|
26
26
|
import { takeCoverage } from "node:v8";
|
|
27
27
|
import stripAnsi from "strip-ansi";
|
|
28
|
-
|
|
29
28
|
import { generateCoverage } from "../coverage/generate_coverage.js";
|
|
30
29
|
import { createCallOrderer } from "../helpers/call_orderer.js";
|
|
31
30
|
import { startMeasuringTotalCpuUsage } from "../helpers/cpu_usage.js";
|
|
@@ -38,11 +38,24 @@ export const reportAsJunitXml = async (
|
|
|
38
38
|
const testCase = testSuite.createNode("testcase", {
|
|
39
39
|
file: fileRelativeUrl,
|
|
40
40
|
name: group,
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
// duration of this execution
|
|
42
|
+
time: mockFluctuatingValues
|
|
43
43
|
? "[mock]"
|
|
44
|
-
:
|
|
45
|
-
|
|
44
|
+
: executionResult.status === "skipped"
|
|
45
|
+
? 0
|
|
46
|
+
: executionResult.timings.end,
|
|
47
|
+
// Date and time of when the test run was executed
|
|
48
|
+
...(executionResult.status === "skipped"
|
|
49
|
+
? {}
|
|
50
|
+
: {
|
|
51
|
+
timestamp: mockFluctuatingValues
|
|
52
|
+
? "[mock]"
|
|
53
|
+
: new Date(executionResult.timings.origin)
|
|
54
|
+
.toISOString()
|
|
55
|
+
.slice(0, -5),
|
|
56
|
+
}),
|
|
57
|
+
// Total number of tests for this execution
|
|
58
|
+
tests: 1,
|
|
46
59
|
});
|
|
47
60
|
testSuite.appendChild(testCase);
|
|
48
61
|
|