test-reporter
test-reporter copied to clipboard
dorny/test-reporter fails with error `Error: TypeError: stackTrace.split is not a function` when there is test failure.
dorny/test-reporter fails with error when there is test failure.
Error: TypeError: stackTrace.split is not a function
below is junit.xml file
[[ATTACHMENT|../test-results/frontend-login-login--login-RTA-83-Verify-user-is-able-to-log-in-with-an-admin-account-sanity-mobile-Chrome-retry1/test-failed-1.png]] ]]>
its playwright report with junit format . pls check this https://playwright.dev/docs/test-reporters
Seeing the same with cypress junit reports Edit: have seen the same in the past with pytest suites
Try your luck by changing the reporter format to java-junit:
- name: visualise-test-reports
if: always()
uses: dorny/test-reporter@v1
with:
name: Test Reports
path: /tests/*.xml
reporter: java-junit
Hello,
I've seen the fix in v1.7.0 release (PR #258), so I tried using dorny/[email protected]
in my github action :
- name: e2e test report
uses: dorny/[email protected]
if: always()
with:
name: e2e tests
path: e2e-junit.xml
reporter: jest-junit
But I experiment the the same error :
Creating test report e2e tests
Processing test results for check run e2e tests
Error: Processing test results from e2e-junit.xml failed
Error: TypeError: stackTrace.split is not a function
Is there another case that causes the error ?
Here is my jest_junit file (generated with vitest) :
Thanks for your help
Ran into this with Vitest results, using java-junit
fixes it.
Ran into this with Vitest results, using
java-junit
fixes it.
Same here.