webdriverio-boneyard / wdio-junit-reporter

A WebdriverIO v4 plugin. Report results in junit xml format.
http://v4.webdriver.io
MIT License
11 stars 42 forks source link

Uppercase letters in test case name are causing missing letters from test case name in the JUnit report #91

Closed ianrenauld closed 6 years ago

ianrenauld commented 6 years ago

My test name is "Shopping Page Is Displayed Test", which is correctly displayed in Spec reporter, but since today (so I assume with release v0.4.1 of wdio-junit-reporter), I get this in the JUnit report: "hopping_age_s_isplayed_est".

Both the classname and name of the < testcase > tag are affected.

If I change the title to "Shopping Page Is DisPlayed Test" then I get "hopping_age_s_is_layed_est" which is all kinds of wrong!

christian-bromann commented 6 years ago

@ianrenauld can you provide the xml reports or anything that helps us to look into the issue. Also PRs with fixes are much appreciated 😉

patthiel commented 6 years ago

~I'm seeing the same issue, but are we sure this isn't an issue with the jenkins junit plugin? my test report xml file displays all the information correctly~

I had not updated to the latest package. That's why my reporter output looked ok.

ianrenauld commented 6 years ago

I've attached my XML report. This was a local run (not through Jenkins, although I see the same on Jenkins). I'm running both the Spec and the JUnit reporter at the same time, just in case this has an impact.

WDIO.xunit.chrome.0-0.xml.zip

Also, my runs are with the wdio test runner, I'm using Mocha straight up (no Cucumber or anything else).

christian-bromann commented 6 years ago

Fixed issue and will release it as v0.4.2

ianrenauld commented 6 years ago

Thanks for the super fast service, as always, @christian-bromann !

patthiel commented 6 years ago

Cheers @christian-bromann