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
{{ message }}
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.
Just found that for wdio-dot-reporter using mocha, when a test with nested describe hooks like the one below fails:
describe('Button -', function () {
describe('When clicked -', function () {
it('Should turn red', function () {
...
});
});
});
The error printed out only includes the immediate parent of the it hook like this: 1) When clicked - Should turn red
I was able to make a small change to reporter.js so that it would print out all the nested describe hooks like this: 1) Button - When clicked - Should turn red
Does anyone want this new behaviour? If yes, i can create a PR for it... Otherwise, there must be a good a reason why it was made to behave like that, right?
@christian-bromann I need to override the listFailures method in the BaseReporter class but I'm not sure how to do it. If I just assign this.baseReporter.listFailures to a new function lib/reporter.js, I'm afraid that it will also change the same function in the BaseReporter class and affect other kinds of reporters, right? Any ideas on how I can do this correctly?
Just found that for wdio-dot-reporter using mocha, when a test with nested describe hooks like the one below fails:
describe('Button -', function () {
describe('When clicked -', function () {
it('Should turn red', function () {
...
});
});
});
The error printed out only includes the immediate parent of the it hook like this:
1) When clicked - Should turn red
I was able to make a small change to reporter.js so that it would print out all the nested describe hooks like this:
1) Button - When clicked - Should turn red
Does anyone want this new behaviour? If yes, i can create a PR for it... Otherwise, there must be a good a reason why it was made to behave like that, right?
I asked in Gitter about this: https://gitter.im/webdriverio/webdriverio?at=5af514fa862c5e33e9270e6c too.
The text was updated successfully, but these errors were encountered: