-
Notifications
You must be signed in to change notification settings - Fork 41
Using junit reporter with cucumber-boilerplate seems to not work #34
Comments
Did you experience this @wvankuipers ? |
I am running into the exact same error with Jasmine 2.5.3 when I have a test marked as excluded |
Skipped tests have an undefined value for the title attribute, which throws an error on Is that a legitimate situation, having an
|
In my case, there is an undefined value after each Scenario. I do not have a blank title. Imho it looks like a problem upstream. Here's a test feature and step. test.feature
test.step-definition.jsvar myStepDefinitionsWrapper = function () {
this.Given(/^blank test$/, function () {
});
};
module.exports = myStepDefinitionsWrapper; package.json{
"name": "test-junit-wdio",
"version": "0.0.0",
"license": "",
"author": "",
"description": "",
"repository": "",
"main": "",
"engines": {
"node": "~6.10.0",
"yarn": "^0.20.0"
},
"scripts": {
"test": "wdio",
"test:report": "wdio"
},
"dependencies": {
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-register": "^6.24.1",
"babel-runtime": "^6.23.0",
"webdriverio": "^4.6.2"
},
"devDependencies": {
"wdio-browserstack-service": "^0.1.4",
"wdio-cucumber-framework": "^0.2.16",
"wdio-dot-reporter": "0.0.8",
"wdio-junit-reporter": "^0.3.0",
"wdio-phantomjs-service": "^0.2.2",
"wdio-selenium-standalone-service": "0.0.8",
"wdio-spec-reporter": "^0.1.0"
}
} wdio-junit-reporter/build/reporter.js value: function prepareName(name) {
console.log('prepareName', name);
if(!name) return '';
return name.toLowerCase().split(this.suiteNameRegEx).filter(function (item) {
return item && item.length;
}).join('_');
} cli output$ yarn run test
yarn run v0.20.3
$ wdio
prepareName true test
prepareName True should always be true
prepareName undefined
prepareName blank test
prepareName blank test
prepareName blank test
Wrote xunit report to [./outputDir].
3 passing (1.00s)
Done in 1.51s. |
@christian-bromann I have not used the junit reporter in combination with the boilerplate. I'm going to look into this. |
I am experiencing the same problem as @drawm. I don't have any new lines after
|
@christian-bromann Do you have any idea on why this could be happening? Thanks. |
not without having a reproducible example |
@christian-bromann Here is a reproducible example repo: https://github.com/mfurtado-mdsol/junit-cucumber-failure. I basically copied example given by @drawm with one difference(Before hook) in my steps file.
It seems to me adding a |
|
@christian-bromann thanks. I can live with using wdio hooks. 🍻 |
From @inspiraller on March 29, 2017 9:9
Using cucumber-boilerplate with junit reporter, I get an error:
This is inside my wdio.conf:
This is the error:
Copied from original issue: webdriverio/cucumber-boilerplate#73
The text was updated successfully, but these errors were encountered: