Python support

Add python-xunit-parser.ts with associated case statement
Add python-xunit to reporter docs in action.yml
Add tests
Update README

Resolves #244
Resolves #633
This commit is contained in:
Michael Marcus 2025-07-25 15:06:22 -04:00
parent e2f0ff6339
commit 9b8d3b002e
9 changed files with 213 additions and 1 deletions

View file

@ -0,0 +1,44 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`python-xunit tests report from python test results matches snapshot 1`] = `
TestRunResult {
"path": "fixtures/python-xunit.xml",
"suites": [
TestSuiteResult {
"groups": [
TestGroupResult {
"name": "src.acme.test_lib",
"tests": [
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": {
"details": undefined,
"line": undefined,
"message": "failed",
"path": undefined,
},
"name": "test_always_fail",
"result": "failed",
"time": 92.05175,
},
],
},
],
"name": "pytest",
"totalTime": 220.47725000000003,
},
],
"totalTime": undefined,
}
`;