You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading nightwatch to 0.7 version, there are missing information about failing assertion in junit report. I'm using junit report with jenkins. Because of this bug, all tests are marked as "passed" in jenkins.
Example test file:
module.exports = {
tags: ['FailingReport'],
'passed': function (browser) {
browser.assert.ok(true, "true");
},
'failed': function (browser) {
browser.assert.ok(false, "failed");
}
};
After upgrading nightwatch to 0.7 version, there are missing information about failing assertion in junit report. I'm using junit report with jenkins. Because of this bug, all tests are marked as "passed" in jenkins.
Example test file:
JUnit report:
Seems in nightwatchjs 0.7 is messed up (or missing) failure field.
module in nightwatch 0.6.x
module in nightwatchjs 0.7
Seems I found place in code responsible for this problem. Check commit: bc3b36167f3be15ca26856f45019fd748ed10d37, file: lib/core/assertion.js
Changed
Seems corresponding changes was done in lib/runner/reporter.js, but not in junit.xml.ejs. So this 'if'
is always false using nightwachjs 0.7.
Was this change suppose to be done? I don't see any reason to change 'failure' to 'elementNotFound'
The text was updated successfully, but these errors were encountered: