-
-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(cli): print failed hooks #4476
feat(cli): print failed hooks #4476
Conversation
Successfully published 3.6.6-beta.5 |
@kobenguyent E.g.
Tested with CodeceptJS 3.6.7 |
@@ -216,8 +217,14 @@ class Cli extends Base { | |||
console.log(); | |||
} | |||
|
|||
this.failures.forEach((failure) => { | |||
if (failure.constructor.name === 'Hook') { | |||
stats.failures -= stats.failures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @mirao perhaps the failure count should not be touched, just adding failedHooks
is good enough. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stats.failures -= stats.failures
isn't the same as stats.failures = 0
?
Motivation/Description of the PR
AfterSuite
Hook #4466run command
run workers command
Type of change
Checklist:
npm run docs
)npm run lint
)npm test
)