-
Notifications
You must be signed in to change notification settings - Fork 553
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
Regression: exit code 0 when loaded after minitest #465
Comments
That's because minitest/autorun is kind of insane and doesn't start until the program ends. Yes, that's right, minitest autorun runs your entire test suite in an Requiring simplecov first loads the (default) I ran into a lot of trouble with this in rails-api/active_model_serializers#1386 (comment) and rails-api/active_model_serializers#1109 which referencs http://blog.arkency.com/2013/06/are-we-abusing-at-exit/ |
So, I don't think it's a regression as that issue had to do with simplecov mishandling the error code. See my comment here on how I confirmed that #281 (comment) If you can confirm, this would make a good PR to the docs. |
Wow, @bf4, thanks for the background. I won't try speculating about who/what/where and ways to improve things here, but I'll make a note of it. |
Thanks. As an aside, I think we still wanted to get the rake task to eager On Mon, Feb 22, 2016 at 7:55 AM Justin Searls [email protected]
|
Another thing that I hope #756 might solve |
I think this issue could be closed... One suggestion might be to add a warning: warn "WARNING: minitest should be loaded AFTER simplecov" if defined?(Minitest) but I don't know if you want that "infecting" your project. Happy to whip up a PR if so. |
This seems like a regression of #269
In a very simple project if I have this Rakefile:
And this test helper:
And an error occurs, the process exits code 0. However, if I correct my configuration to load simplecov before minitest/autorun:
exits non-zero.
Obviously, I had simplecov misconfigured, but I got no feedback at all I was doing it wrong, and my build was passing erroneously. Is there anything simplecov can do to guard against this or at least warn me?
The text was updated successfully, but these errors were encountered: