Parse test reports (for example junit.xml created by xcpretty). Simple wrapper of junit2json.
The junit file to parse.
The junit string to parse.
Should cancel workflow if parsing fails. Defaults to true.
The number of tests that were ran.
The number of tests that succeeded.
The number of tests that failed.
Boolean specifying if parsing succeeded.
The fully parsed content as JSON.
- 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.