Skip to content

fix(reporter): set exit code when thresholds aren't met#420

Closed
matz3 wants to merge 2 commits intokarma-runner:masterfrom
matz3:fix-exit-code
Closed

fix(reporter): set exit code when thresholds aren't met#420
matz3 wants to merge 2 commits intokarma-runner:masterfrom
matz3:fix-exit-code

Conversation

@matz3
Copy link
Copy Markdown

@matz3 matz3 commented Jul 23, 2020

See #418

@matz3
Copy link
Copy Markdown
Author

matz3 commented Jul 23, 2020

Fixed existing tests. New tests for onExit still missing.


this.onExit = function (done) {
this.onExit = function (exitDone) {
const done = () => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Custom done can be execute with 1 or 0. I think, it is regression

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of now, the onExit done callback from karma-runner doesn't expect any value. This is a new feature proposal from my PR (karma-runner/karma#3541). So I don't understand how this can be a regression.

I don't know how the _onExit is used or how implements it. But I expected it to be a hook for some third-party and I intentionally did not allow it to provide an exit code value.

@matz3
Copy link
Copy Markdown
Author

matz3 commented Sep 1, 2020

Already solved with #419

@matz3 matz3 closed this Sep 1, 2020
@matz3 matz3 deleted the fix-exit-code branch September 1, 2020 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants