I have a bunch of RSpec Rake tasks defined that I'd like to run in a specific order when I run the entire suite of tests.
I've tried something like this:
task :run_in_order => [:one, :two, :three] do
puts "Run suite of tests"
end
And it runs the first test and then stops and doesn't run the rest of the tasks.
So if using Rake syntax it doesn't work. Is there a way to note task dependencies for RSpec Rake tasks?
Check this http://blog.davidchelimsky.net/2012/01/04/rspec-28-is-released/
Basically you should order your tests in a spec file an then execute it with
--order default
option. .