-
Notifications
You must be signed in to change notification settings - Fork 198
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
plugin shouldn't changes reporters unless activated #247
Comments
@zenspider please clarify the definition of "activated" here. Is call of |
Yeah. Any user intervention that explicitly says "I want to use this". A flag, env var, or explicit call would be fine. Simply requiring that file isn't enough. |
@zenspider I've been looking at the code and it looks like the only place where we could do anything with reporters is |
I'm not sure if this is helpful or related to the same issue but I found that simply installing this plugin (but not using it) broke the normal ProgressReporter output for Minitest. Somehow the DelegateReporter was not properly calling prerecord on the ProgressReporter. Uninstalling the plugin fixed things. Is this related or should I open a separate ticket? |
I'd suggest to file a separate ticket with the test (pointer to the test repo) to reproduce the problem so I could check if this is the same problem or not. |
This issue hasn't had any activity for some time. Perhaps it's no longer a concern or other plugins have already introduced workarounds. If this behavior is still causing problems, I think there may be some value in reviving the idea in #237. Otherwise, I will close this out. |
because even having it in the Gemfile messes with minitest-parallel_fork, sigh. For context, see: - minitest-reporters/minitest-reporters#247 - jeremyevans/minitest-parallel_fork#3
**What problem is this PR intended to solve?** drop minitest-reporters, because even having it in the Gemfile messes with minitest-parallel_fork, sigh. For context, see: - minitest-reporters/minitest-reporters#247 - jeremyevans/minitest-parallel_fork#3 Also, avoid psych 5.1.1 because of ruby/psych#655
Offending code is here:
https://github.com/kern/minitest-reporters/blob/775d1e1072e793e39931340391e0e8f55e45d5e4/lib/minitest/minitest_reporter_plugin.rb#L70-L74
Which makes the wrong assumption that if the gem is installed, it must be used. It should be activated via some mechanism, but NOT through minitest's plugin system. I suggest requires or other config in the test_helper or equivalent.
See jeremyevans/minitest-parallel_fork#3 for another example where this is messing with other plugins.
The text was updated successfully, but these errors were encountered: