-
Notifications
You must be signed in to change notification settings - Fork 2
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 minitest-reporters gem #44
Comments
Hmm, I am confused. It turns out that minitest-reporters is embedded in the CLI:
However, I get errors when I try to use it via the CLI:
It works fine if I just use straight ruby:
|
@shorowit It seems it can't find the reporters that are embedded, but the workaround is to require it directly and it'll work. You might also need to add Anyways, for your specific example, add - $ openstudio -e "require 'minitest/reporters';Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new"
+ $ openstudio -e "require 'minitest/reporters'; require 'minitest/reporters/spec_reporter'; Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new" The list of reporters file names can be found here: https://github.com/minitest-reporters/minitest-reporters/tree/master/lib/minitest/reporters If that's enough, please close this issue. |
Indeed that allows it to work inside the CLI, thanks Julien. IMO it's still a (low priority) bug that the CLI behavior is different than straight ruby. I'm using the recommended usage and certainly spec_reporter should automatically load. But since we have a workaround here, I won't object to closing the issue. |
Would be nice to have this gem in the OS CLI:
https://github.com/minitest-reporters/minitest-reporters
When running unit tests via the CLI, it makes it easier to see failures/errors.
The text was updated successfully, but these errors were encountered: