Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 2 commits into from

Conversation

matz3
Copy link

@matz3 matz3 commented Jul 23, 2020

See #418

@matz3
Copy link
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
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
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
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.

None yet

2 participants