Introducing the `packs-rails-minitest` gem for an easier minitest setup

This message was imported from the Ruby/Rails Modularity Slack server. Find more info in the import thread.

Message originally sent by slack user U712YWCKK8T

For (what feels like) the minority of us who use minitest instead of rspec, I’ve just created a packs-rails-minitest gem to make the setup a bit easier. All it does right now is define some Rake tasks and provide instructions for how to use it, but hopefully someone will find it useful https://github.com/Ophelos/packs-rails-minitest

Message originally sent by slack user U71TN2WF04X

I was reading the “Overriding standard Rails test tasks” section, and I have a question, after the overrinding is successful, the task would execute the tests inside packs as well as the ones outside?

Message originally sent by slack user U712YWCKK8T

rake test would yes, rails test will just do the ones outside because it gets intercepted by a built-in Thor command first.

Message originally sent by slack user U712YWCKK8T

Unless you set the environment variables it talks about

Message originally sent by slack user U712YWCKK8T

I’m thinking the library could set the environment variables in test:prepare to make the Thor command work, but I’m not sure if that would have unintended side effects

Message originally sent by slack user U71TN2WF04X

Nice! I’ll take a look and give it a try! Thanks!