Escape <> characters in suite name #159
GitHub Actions / Workflow Report
failed
Dec 18, 2023 in 1s
Workflow Report ❌
❌ jest-junit.xml
34 tests were completed in 7s with 33 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
tests/dart-json.test.ts | 3✅ | 538ms | ||
tests/dotnet-trx.test.ts | 4✅ | 6s | ||
tests/java-junit.test.ts | 4✅ | 5s | ||
tests/java-stack-trace-element-parser.test.ts | 7✅ | 272ms | ||
tests/jest-junit.test.ts | 4✅ | 1❌ | 6s | |
tests/mocha-json.test.ts | 3✅ | 491ms | ||
tests/swift-xunit.test.ts | 1✅ | 428ms | ||
tests/utils/parse-utils.test.ts | 7✅ | 313ms |
✅ tests/dart-json.test.ts
dart-json tests
✅ produces empty test run result when there are no test cases
✅ matches report snapshot
✅ report from rrousselGit/provider test results matches snapshot
✅ tests/dotnet-trx.test.ts
dotnet-trx tests
✅ produces empty test run result when there are no test cases
✅ matches report snapshot
✅ report from FluentValidation test results matches snapshot
✅ report from SilentNotes test results matches snapshot
✅ tests/java-junit.test.ts
java-junit tests
✅ produces empty test run result when there are no test cases
✅ report from apache/pulsar single suite test results matches snapshot
✅ report from apache/pulsar test results matches snapshot
✅ parses empty failures in test results
✅ tests/java-stack-trace-element-parser.test.ts
parseStackTraceLine tests
✅ empty line is not parsed
parseStackTraceLine tests › java class
✅ simple
✅ inner class
✅ starts with whitespaces
parseStackTraceLine tests › java class › since Java 9
✅ with classloader and module
✅ with classloader
parseStackTraceLine tests › Kotlin class
✅ method name containing whitespaces
❌ tests/jest-junit.test.ts
jest-junit tests
✅ produces empty test run result when there are no test cases in the testsuites element
✅ produces empty test run result when there are no test cases in a nested testsuite element
✅ report from ./reports/jest test results matches snapshot
✅ report from facebook/jest test results matches snapshot
❌ report from #235 testing react components named <ComponentName />
Error: expect(received).toMatchSnapshot()
✅ tests/mocha-json.test.ts
mocha-json tests
✅ produces empty test run result when there are no test cases
✅ report from ./reports/mocha-json test results matches snapshot
✅ report from mochajs/mocha test results matches snapshot
✅ tests/swift-xunit.test.ts
swift-xunit tests
✅ report from swift test results matches snapshot
✅ tests/utils/parse-utils.test.ts
parseNetDuration
✅ returns 0 for 00:00:00
✅ returns 0 for 00:00:00.0000000
✅ returns 123 for 00:00:00.123
✅ returns 12 * 1000 for 00:00:12
✅ returns 12 * 60 * 1000 for 00:12:00
✅ returns 12 * 60 * 60 * 1000 for 12:00:00
✅ throws when string has invalid format
Annotations
Check failure on line 28 in __tests__/jest-junit.test.ts
github-actions / Workflow Report
__tests__/jest-junit.test.ts ► jest-junit tests ► report from #235 testing react components named <ComponentName />
Failed test found in:
jest-junit.xml
Error:
Error: expect(received).toMatchSnapshot()
Raw output
Error: expect(received).toMatchSnapshot()
Snapshot name: `jest-junit tests report from #235 testing react components named <ComponentName /> 1`
- Snapshot - 4
+ Received + 4
TestRunResult {
"path": "fixtures/external/jest/jest-react-component-test-results.xml",
- "suites": Array [
+ "suites": [
TestSuiteResult {
- "groups": Array [
+ "groups": [
TestGroupResult {
"name": "",
- "tests": Array [
+ "tests": [
TestCaseResult {
"error": undefined,
"name": "<Component /> should render properly",
"result": "success",
"time": 704,
},
],
},
],
- "name": "\\<Component /\\>",
+ "name": "\<Component /\>",
"totalTime": 798,
},
],
"totalTime": 1000,
}
at /home/runner/work/test-reporter/test-reporter/__tests__/jest-junit.test.ts:102:20
at Generator.next (<anonymous>)
at fulfilled (/home/runner/work/test-reporter/test-reporter/__tests__/jest-junit.test.ts:28:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Loading