-
Notifications
You must be signed in to change notification settings - Fork 7
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
Provide Rails-specific tools, possibly as a wrapper around Rails commands #248
Comments
Hi, thanks for continuing to poke at this! I did a bit more digging here. It looks like just running minitest the normal way without either Toys or Rake will yield the same result:
So it seems Rails really wants tests to be run via its own test runner (via the Toys hasn't done any "native" integration with Rails yet; e.g. it doesn't know how to invoke the Rails command to run tests. I agree it would be a good idea to do provide Rails integration; I'll look into that for the next significant version. For now, if these warnings are causing issues, you can do one of the following:
|
Amazing, thanks for looking into this and all your hard work on toys! I look forward to a future rails integration in the future and will use one of the suggested workarounds for now! |
This is a follow up to #245. While the stringio issue seems to be resolved, something recursive seems to still be happening with the toys minitest integration loading.
If we use the same minimal replication setup:
Then I creating a
.toys.rb
with this as the content:Running
rake test
works as expected buttoys test
shows this warning:/Users/username/.gem/ruby/3.2.2/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:8: warning: method redefined; discarding old require
To show the other example that is still happening here with this loading if you run
bundle add bugsnag
.Then again running
rake test
works as expected buttoys test
shows this warning:The text was updated successfully, but these errors were encountered: