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

xit jasmine fail fix #56

Closed AndreyYevtukhov closed 7 years ago

AndreyYevtukhov commented 7 years ago

using wdio-jasmine-framework found this issue, when test in suite is switched off (with xit - https://jasmine.github.io/2.0/introduction.html#section-Pending_Specs)

The error itself is: TypeError: Cannot read property 'toLowerCase' of undefined at JunitReporter.prepareName (d:\work\selenium\selenium_ide_tests\webdriverIO\node_modules\wdio-junit-reporter\build\reporter.js:98:24) at JunitReporter.prepareXml (d:\work\selenium\selenium_ide_tests\webdriverIO\node_modules\wdio-junit-reporter\build\reporter.js:147:57)

When xit() is called, tests name is ignored, and undefined returned. Code fails, and .xml report will not be created.

christian-bromann commented 7 years ago

Closing in favor of #69