Add SwiftXunitParser class based on JavaJunitParser for swift-xunit reporter

This commit is contained in:
Jozef Izso 2023-11-08 15:59:52 +01:00
parent 6a1c2425d8
commit 1c044b4aef
8 changed files with 122 additions and 0 deletions

View file

@ -0,0 +1,44 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`swift-xunit tests report from swift test results matches snapshot 1`] = `
TestRunResult {
"path": "fixtures/swift-xunit.xml",
"suites": Array [
TestSuiteResult {
"groups": Array [
TestGroupResult {
"name": "AcmeLibTests.AcmeLibTests",
"tests": Array [
TestCaseResult {
"error": undefined,
"name": "test_always_pass",
"result": "success",
"time": 36.386333,
},
TestCaseResult {
"error": undefined,
"name": "test_always_skip",
"result": "success",
"time": 92.039167,
},
TestCaseResult {
"error": Object {
"details": undefined,
"line": undefined,
"message": undefined,
"path": undefined,
},
"name": "test_always_fail",
"result": "failed",
"time": 92.05175,
},
],
},
],
"name": "TestResults",
"totalTime": 220.47725000000003,
},
],
"totalTime": undefined,
}
`;