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

Add -fatal flag to stop test execution at the first encountered failure #2

Open
federico-lox opened this issue May 19, 2014 · 2 comments
Assignees
Milestone

Comments

@federico-lox
Copy link
Owner

As per subject, calling go test -fatal (or something similar) should make Win and Fail use T.Fatal rather than T.Fail and block the execution.

@federico-lox federico-lox added this to the v1 milestone May 19, 2014
@federico-lox federico-lox self-assigned this May 19, 2014
@federico-lox
Copy link
Owner Author

Idea: have a separate set of QOTFs with "Run for your life" kind of punchlines to remark the catastrofical effects of failing 😄

@federico-lox
Copy link
Owner Author

T.FailNow (and not T.Fatal) only stops the execution of the test method that invoked it; to stop the execution of go test, Win and Fail need to invoke os.Exit(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant