I'm using Spork and Guard in my RSpec test suite. I'm excluding slow tests from running with:
RSpec.configure do |config|
...
config.filter_run_excluding slow: true
...
end
Then when I need to I run the slow tests in a separate shell with: $ rspec . --tag slow
I'm wondering if there's a shortcut to run the slow tags in same shell that Guard is auto-running its tests in?
There's a console > prompt? And after looking at documentation I find that typing >. rspec . --tag slow works...but that's just a little more verbose than switching to another shell. Seems like this would be a fairly common request. Ideas?
This code will run all the test that are tagged "fast" inside the files we are watching.
You need to use cli option to run only the tests you need.