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

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

Open
raido opened this issue Apr 1, 2024 · 0 comments
Open

Comments

@raido
Copy link

raido commented Apr 1, 2024

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

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