mikepenz / action-junit-report

Reports junit test results as GitHub Pull Request Check

Home Page:https://blog.mikepenz.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

raido opened this issue · comments

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>

let fileName = file ? file : className.split('.').slice(-1)[0]

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