We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
test-summary/action@v2 should work with junit report but the summary only shows " No tests were run".
test-summary/action@v2
A generated test report looks something like following:
<?xml version="1.0" encoding="UTF-8"?> <testsuites> <testsuite name="/home/runner/work/ht7-test/ht7-test/phpunit.xml" tests="13" assertions="34" errors="0" failures="0" skipped="0" time="0.011475"> <testsuite name="Unit" tests="13" assertions="34" errors="0" failures="0" skipped="0" time="0.011[47](https://github.com/1stthomas/ht7-test/actions/runs/12322540753/job/34396335648#step:8:48)5"> <testsuite name="Ht7\Test\Tests\Mocks\DefaultMockTest" file="/home/runner/work/ht7-test/ht7-test/tests/Unit/Mocks/DefaultMockTest.php" tests="3" assertions="6" errors="0" failures="0" skipped="0" time="0.006662"> <testcase name="createWithConstruct" file="/home/runner/work/ht7-test/ht7-test/tests/Unit/Mocks/DefaultMockTest.php" line="29" class="Ht7\Test\Tests\Mocks\DefaultMockTest" classname="Ht7.Test.Tests.Mocks.DefaultMockTest" assertions="2" time="0.0056[49](https://github.com/1stthomas/ht7-test/actions/runs/12322540753/job/34396335648#step:8:50)"/> ... </testsuite> <testcase name="constructor" file="/home/runner/work/ht7-test/ht7-test/tests/Unit/Reflection/ReflectionHelperTest.php" line="31" class="Ht7\Test\Tests\Reflection\ReflectionHelperTest" classname="Ht7.Test.Tests.Reflection.ReflectionHelperTest" assertions="1" time="0.000237"/> </testsuite> </testsuite> </testsuite> </testsuites>
But the parser expects the testcases after the first testcases element, see:
testcases
https://github.com/test-summary/action/blob/4cdf6876dc9538fb18432a56757830acd56c492e/src/test_parser.ts#L202-L224
The text was updated successfully, but these errors were encountered:
Seems not really to be a bug because https://github.com/ctrf-io/github-test-reporter works as expected.
Sorry, something went wrong.
Should we add an issue on the underlying action for this problem (https://github.com/test-summary/action)?
the first </testsuite> element is because indeed with PHPUnit we have a 4th level of <testsuite> and I forgot to select that too.
</testsuite>
<testsuite>
Issue at: test-summary/action#57
1stthomas
No branches or pull requests
test-summary/action@v2
should work with junit report but the summary only shows " No tests were run".A generated test report looks something like following:
But the parser expects the testcases after the first
testcases
element, see:https://github.com/test-summary/action/blob/4cdf6876dc9538fb18432a56757830acd56c492e/src/test_parser.ts#L202-L224
The text was updated successfully, but these errors were encountered: