Github Action Test Reporter to Export Test Results to GitHub
Using GitHub-hosted runners on windows, running ReadyAPI testrunner in github action as:
jobs:
runReadyAPITest:
runs-on: hosted-runner-name
steps:
- name: Run ReadyAPI Test
run: |
echo "Running ABC Test"
& "C:\Program Files\SmartBear\ReadyAPI-3.10.1\bin\testrunner.bat" C:\Path\To\ReadyAPI\Project\ -fC:\Path\To\Save\Test\Result "-RProject Report" -FXML
- name: Publish ReadyAPI Test
uses: mikepenz/action-junit-report@v3
with:
report_paths: '**/Path/To/Saved/Test/Result/XML_REPORT_NAME.xml'
Test is running as expected and report XML is created.
Now trying to pull the XML report in Github and facing issue with that. Tried following Github actions
1. https://github.com/marketplace/actions/junit-report-action
2. https://github.com/marketplace/actions/test-reporter
Getting different errors with different ways to generate XML report. Used "-RProject Report", "-RTest Suite Report" and "-RData Export" to generate different XML reports and used them with above actions to display test results in github UI but it's not able to pull and show the test results in github UI
With "-RData Export" option in testrunner command and with dorny/test-reporter@v1 action (reporter attribute value java-junit), error is Cannot read property '$' of undefined
With "-RData Export" option in testrunner command and with dorny/test-reporter@v1 action (reporter attribute value jest-junit), error is Cannot read property 'testsuite' of undefined
For various XML reports, With mikepenz/action-junit-report@v3 action, it says No test results found!
If you could help on how can we pull test results and display in github UI.
Can provide more details on errors if needed.