@reporters/junit 1.2.0 → 1.2.1
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/tests/index.test.js +1 -2
- package/tests/output.v19.js +0 -37
- package/tests/output.v20.js +0 -37
- /package/tests/{output.v18.js → output.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.1](https://github.com/MoLow/reporters/compare/junit-v1.2.0...junit-v1.2.1) (2023-07-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* more accurate counting ([1949140](https://github.com/MoLow/reporters/commit/19491406b769f03555b3ae352ed9838e2154c855))
|
|
9
|
+
|
|
3
10
|
## [1.2.0](https://github.com/MoLow/reporters/compare/junit-v1.1.0...junit-v1.2.0) (2023-07-05)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
package/tests/index.test.js
CHANGED
|
@@ -3,10 +3,9 @@ const { spawnSync } = require('child_process');
|
|
|
3
3
|
const assert = require('assert');
|
|
4
4
|
const { compareLines } = require('../../../tests/utils');
|
|
5
5
|
const reporter = require('../index');
|
|
6
|
+
const output = require('./output');
|
|
6
7
|
|
|
7
8
|
test('spwan with reporter', () => {
|
|
8
|
-
// eslint-disable-next-line import/no-dynamic-require, global-require
|
|
9
|
-
const output = require(`./output.${process.version.split('.')[0]}`);
|
|
10
9
|
const child = spawnSync(process.execPath, ['--test-reporter', './index.js', '../../tests/example'], { env: {} });
|
|
11
10
|
assert.strictEqual(child.stderr?.toString(), '');
|
|
12
11
|
compareLines(child.stdout?.toString(), output.stdout);
|
package/tests/output.v19.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
stdout: `<\\?xml version="1.0" encoding="utf-8"\\?>
|
|
3
|
-
<testsuites>
|
|
4
|
-
\t<testsuite name="tests" time=".*" disabled="0" errors="0" tests="3" failures="1" skipped="0" hostname=".*">
|
|
5
|
-
\t\t<testcase name="is ok" time=".*" classname="test"/>
|
|
6
|
-
\t\t<testcase name="fails" time=".*" classname="test" failure="this is an error">
|
|
7
|
-
\t\t\t<failure type="testCodeFailure" message="this is an error">
|
|
8
|
-
\\[Error \\[ERR_TEST_FAILURE\\]: this is an error\\] {
|
|
9
|
-
failureType: 'testCodeFailure',
|
|
10
|
-
cause: Error: this is an error
|
|
11
|
-
.*
|
|
12
|
-
.*
|
|
13
|
-
.*
|
|
14
|
-
.*
|
|
15
|
-
.*
|
|
16
|
-
.*
|
|
17
|
-
.*
|
|
18
|
-
.*
|
|
19
|
-
.*
|
|
20
|
-
code: 'ERR_TEST_FAILURE'
|
|
21
|
-
}
|
|
22
|
-
\t\t\t</failure>
|
|
23
|
-
\t\t</testcase>
|
|
24
|
-
\t\t<testcase name="is a diagnostic" time=".*" classname="test"/>
|
|
25
|
-
\t</testsuite>
|
|
26
|
-
\t<testsuite name="more tests" time=".*" disabled="0" errors="0" tests="1" failures="0" skipped="0" hostname=".*">
|
|
27
|
-
\t\t<testcase name="is ok" time=".*" classname="test"/>
|
|
28
|
-
\t</testsuite>
|
|
29
|
-
\t<testcase name="is skipped" time=".* classname="test">
|
|
30
|
-
\t\t<skipped type="skipped" message="true"/>
|
|
31
|
-
\t</testcase>
|
|
32
|
-
\t<testcase name="is a todo" time=".*" classname="test">
|
|
33
|
-
\t\t<skipped type="todo" message="true"/>
|
|
34
|
-
\t</testcase>
|
|
35
|
-
</testsuites>
|
|
36
|
-
`,
|
|
37
|
-
};
|
package/tests/output.v20.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
stdout: `<\\?xml version="1.0" encoding="utf-8"\\?>
|
|
3
|
-
<testsuites>
|
|
4
|
-
\t<testsuite name="tests" time=".*" disabled="0" errors="0" tests="3" failures="1" skipped="0" hostname=".*">
|
|
5
|
-
\t\t<testcase name="is ok" time=".*" classname="test"/>
|
|
6
|
-
\t\t<testcase name="fails" time=".*" classname="test" failure="this is an error">
|
|
7
|
-
\t\t\t<failure type="testCodeFailure" message="this is an error">
|
|
8
|
-
\\[Error \\[ERR_TEST_FAILURE\\]: this is an error\\] {
|
|
9
|
-
failureType: 'testCodeFailure',
|
|
10
|
-
cause: Error: this is an error
|
|
11
|
-
.*
|
|
12
|
-
.*
|
|
13
|
-
.*
|
|
14
|
-
.*
|
|
15
|
-
.*
|
|
16
|
-
.*
|
|
17
|
-
.*
|
|
18
|
-
.*
|
|
19
|
-
.*
|
|
20
|
-
code: 'ERR_TEST_FAILURE'
|
|
21
|
-
}
|
|
22
|
-
\t\t\t</failure>
|
|
23
|
-
\t\t</testcase>
|
|
24
|
-
\t\t<testcase name="is a diagnostic" time=".*" classname="test"/>
|
|
25
|
-
\t</testsuite>
|
|
26
|
-
\t<testsuite name="more tests" time=".*" disabled="0" errors="0" tests="1" failures="0" skipped="0" hostname=".*">
|
|
27
|
-
\t\t<testcase name="is ok" time=".*" classname="test"/>
|
|
28
|
-
\t</testsuite>
|
|
29
|
-
\t<testcase name="is skipped" time=".* classname="test">
|
|
30
|
-
\t\t<skipped type="skipped" message="true"/>
|
|
31
|
-
\t</testcase>
|
|
32
|
-
\t<testcase name="is a todo" time=".*" classname="test">
|
|
33
|
-
\t\t<skipped type="todo" message="true"/>
|
|
34
|
-
\t</testcase>
|
|
35
|
-
</testsuites>
|
|
36
|
-
`,
|
|
37
|
-
};
|
|
File without changes
|