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

JUnit report generated with PHPUnit not working #57

Open
1stthomas opened this issue Dec 18, 2024 · 1 comment
Open

JUnit report generated with PHPUnit not working #57

1stthomas opened this issue Dec 18, 2024 · 1 comment

Comments

@1stthomas
Copy link

When using this action with PHPUnit, the action doesn't produce the expected result. Looking into the code I see, that you only check the first testsuite level of testsuites. But as you can see e.g. here: 1stthomas/ht7-test@3cbe0a7 JUnit reports produced by PHPUnit have 3 or 4 levels.

Thanks to PHPUnit we could just use the first or second testsuite element where the summary of the testcases is added as attribute values, see linked report.

PHPUnit: v11.4
PHP v8.4
test-summary/action v2

@1stthomas
Copy link
Author

1stthomas commented Dec 18, 2024

Initially I thought this has to be an issue of PHPUnit. But I could implement https://github.com/ctrf-io/github-test-reporter with no problems. That's why I think, we should fix it here.

@1stthomas 1stthomas changed the title PHPUnit JUnit Report not working JUnit report generated with PHPUnit not working Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant