Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: TypeError: Cannot read properties of undefined (reading '$') #551

Open
alxmrtn-kroger opened this issue Feb 3, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@alxmrtn-kroger
Copy link

alxmrtn-kroger commented Feb 3, 2025

Describe the bug

Running the test reporter with 2 reports: surefire and failsafe. It fails with the error

Using test report parser 'java-junit'
Creating test report Test Report
  Processing test results for check run Test Report
  Error: Processing test results from target/failsafe-reports/failsafe-summary.xml failed
Error: TypeError: Cannot read properties of undefined (reading '$')

To Reproduce

Steps to reproduce the behavior:
Run unit and integration tests for java project. Configure generate test report as follows:

- name: Generate Test Report
  uses: dorny/test-reporter@main
  with:
    name: Test Report
    path: target/surefire-reports/*.xml,target/failsafe-reports/*.xml
    reporter: java-junit
    fail-on-error: true

Expected behavior

It's able to generate a report with multiple report xmls

@alxmrtn-kroger alxmrtn-kroger added the bug Something isn't working label Feb 3, 2025
@j-catania j-catania removed their assignment Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants