I have 2 rails projects; one created using --skip-test-unit and one without.
Both projects are using minitest.
In the project created with --skip-test-unit everything works fine.
In the other project when I try to run all tests by pressing enter it doesnt run any tests. however when i save a file it runs the appropriate tests.
I don't think this is a problem with guard, but trying to dig into this and im not sure where to start.
Both projects are using the same Guardfile
guard 'spork', :cucumber => false, :rspec => false do
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.+\.rb$})
watch(%r{^config/initializers/.+\.rb$})
watch('Gemfile')
watch('Gemfile.lock')
watch('test/minitest_helper.rb') { :minitest }
end
guard 'minitest', :color => true do
watch(%r|^test/controllers/(.*)_test\.rb|)
watch(%r|^test/models/(.*)_test\.rb|)
# Rails 3.2
watch(%r|^app/controllers/(.*)\.rb|) { |m| "test/controllers/#{m[1]}_test.rb" }
watch(%r|^app/helpers/(.*)\.rb|) { |m| "test/helpers/#{m[1]}_test.rb" }
watch(%r|^app/models/(.*)\.rb|) { |m| "test/models/#{m[1]}_test.rb" }
watch('test/minitest_helper.rb') { :minitest }
end
Solved!
Output:
Run all
Running all tests
Specify ruby-prof as application's dependency in Gemfile to run benchmarks.
removing the rails generated performance tests