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

Clean up the test failure output #209

Merged
merged 3 commits into from
Feb 23, 2019
Merged

Conversation

hayd
Copy link
Contributor

@hayd hayd commented Feb 20, 2019

Specifically, don't throw an exception when the tests fail,
instead return with exit status 1.

Before:

screen shot 2019-02-19 at 23 11 18

After:

screen shot 2019-02-19 at 23 10 52

Specifically, don't throw an exception when the tests fail,
instead return with exit status 1.
testing/mod.ts Outdated
@@ -6,11 6,18 @@ interface Constructor {
new (...args: any[]): any;
}

export class AssertionError extends Error {
Copy link
Member

Choose a reason for hiding this comment

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

Is this needed to avoid the stack trace?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, good point this is distinct. Initially when I was debugging something it wasn't immediately clear whether or not it was another Error or from the assert, this change disambiguates.

Copy link
Member

Choose a reason for hiding this comment

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

Can we also show which assert failed?

Copy link
Member

Choose a reason for hiding this comment

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

in a separate PR. this one is just a one line change.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM - I've removed the AssertionError stuff - let's do that in a separate PR.

@ry ry merged commit e609f0c into denoland:master Feb 23, 2019
@hayd hayd deleted the clean-up-test-fail branch May 24, 2019 19:52
ry pushed a commit to ry/deno that referenced this pull request Oct 9, 2019
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.

3 participants