-
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
Add option to disable error status code printing #747
Conversation
This should only pass tests once simplecov-ruby/simplecov#747 is merged and incorporated into a new SimpleCov release. Fixes #238
@JacobEvelyn Hi there and thanks for the PR! 💚 Might I ask - can't you just adjust your tests to deal with the new printed exit status? Or ideally, not have simplecov fail and exit with an that error message? I'm open to changing the message to be potentially more parsable, but the reasoning for disabling it I don't understand right now (see questions above). |
Good questions, @PragTob! I definitely considered that, but it seemed a little hacky to me. Context that might be helpfulHow
|
@JacobEvelyn thanks a lot for the lengthy explanation, a bit more than I wanted but it helps turnaround time here! 😁 👍 Yeah the most important for me is the starting of sub processes that have to have simplecov enabled themselves in the black box tests. Although a bit odd I can see how it's a very valid approach (we're actually doing the same kinda just with the difference that we want to test simplecov). I agree it's the simplest solution, supporting it going forward shouldn't be too complicated so I'm fine with having it 🎉 It'd be great though if you could add tests for it and document it in the README. If not, no worries but you'll have to wait for me to get around to doing it :) |
Sure, I'll add some tests and documentation. Thanks for talking it through with me! |
PR #688 added functionality that broke the [`JacobEvelyn/friends`](https://github.com/JacobEvelyn/friends) build (see https://travis-ci.com/JacobEvelyn/friends/jobs/238680478), which runs many CLI processes and parses the output. Some CLI processes are expected to have non-success status codes, but these tests also check that our CLI wrote the correct message to STDERR, and with #688 the output to STDERR is now changed. This commit adds a SimpleCov configuration flag to disable the message added in #688.
Okay @PragTob! I just added more changes to my commit here to put documentation in the README and add tests. Let me know what you think! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much, @PragTob! Do you have a sense for when the next release will be? |
@JacobEvelyn not right now no, some of it depends on whether or not I get rubytogether funding to work on this. I'll try and re evaluate it this weekend, technically there's barely such a thing as too small releases. Would it be a big bother for you to use it from github in the mean time? |
Unfortunately, since I'm using this in a gem I can't use it from GitHub because there's no way to specify GitHub dependencies in gemspec files. 😢 So sooner is better for me, but as a fellow OSS maintainer I know it's not always easy to find the time for these things—please don't feel pressure from me to rush! |
@JacobEvelyn you don't need to have development dependencies in the gemspec, you can just add them in the |
Ah neat, thanks! |
This temporarily pins our simplecov dependency to the version fixed by simplecov-ruby/simplecov#747 to fix tests. Fixes #238
This temporarily pins our simplecov dependency to the version fixed by simplecov-ruby/simplecov#747 to fix tests. Fixes #238
This commit adds a `Gemfile.old` which is used for testing old Ruby versions in Travis. This file does not include dependencies such as Rubocop and SimpleCov that are only used in either local development or our Travis build for the latest Ruby version. Included in these changes is pinning the SimpleCov dependency to the version fixed by simplecov-ruby/simplecov#747 to fix tests. [@shen-sat](https://github.com/shen-sat) was instrumental in discussing these changes and coming up with many parts of the overall approach. Many thanks! Fixes #238
PR #688 added functionality that broke the
JacobEvelyn/friends
build (see https://travis-ci.com/JacobEvelyn/friends/jobs/238680478),
which runs many CLI processes and parses the output. Some CLI
processes are expected to have non-success status codes, but
these tests also check that our CLI wrote the correct message
to STDERR, and with #688 the output to STDERR is now changed.
This commit adds a SimpleCov configuration flag to disable the
message added in #688.