Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scribd/junit-xml-parser-action
https://github.com/scribd/junit-xml-parser-action
actions
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/scribd/junit-xml-parser-action
- Owner: scribd
- License: mit
- Created: 2020-09-21T21:16:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-07T21:57:32.000Z (4 months ago)
- Last Synced: 2024-11-08T11:03:29.579Z (2 months ago)
- Topics: actions
- Language: JavaScript
- Homepage:
- Size: 380 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JUnit XML Parser Action
Parse test reports (for example junit.xml created by xcpretty). Simple wrapper of [junit2json](https://www.npmjs.com/package/junit2json).
## Inputs
### `path`
The junit file to parse.
### `content`
The junit string to parse.
### `fail-on-error`
Should cancel workflow if parsing fails. Defaults to **true**.
## Outputs
### `total-test-count`
The number of tests that were ran.
### `success-test-count`
The number of tests that succeeded.
### `failure-test-count`
The number of tests that failed.
### `parsed`
Boolean specifying if parsing succeeded.
### `json`
The fully parsed content as JSON.
## Example usage
```yaml
- name: Parse JUnit XML string
id: junit-parser
uses: justAnotherDev/junit-xml-parser-action@v1
with:
path: test_output/junit.xml- run: echo "Failed Tests: ${{ steps.junit-parser.outputs.failure-test-count }}"
```More examples [here](https://github.com/justAnotherDev/junit-xml-parser-action/blob/master/.github/workflows/test.yml).