mikepenz / action-junit-report

Reports junit test results as GitHub Pull Request Check
https://blog.mikepenz.dev
Apache License 2.0
305 stars 116 forks source link

Testem.js xunit report browser name as classname property parsed incorrectly #1065

Open raido opened 5 months ago

raido commented 5 months ago

Given xunit report from testem.js, filename parsed from classname attribute is getting incorrectly intrepeted.

<testsuite name="Testem Tests" tests="78" skipped="0" todo="0" failures="1" timestamp="Mon Apr 01 2024 18:34:10 GMT+0000 (Coordinated Universal Time)" time="12.747">
<testcase classname="Chrome 123.0" name="Some test" time="0.688"/>
</testsuite>

https://github.com/mikepenz/action-junit-report/blob/9379f0ccddcab154835d4e2487555ee79614fe95/src/testParser.ts#L61

Since the testParser is splitting at . (dot) symbol, resulting name in Github job summary will be 0.Some test but should be Chrome 123.0.Some test or Chrome 123.0 - Some test