rake test finding tests. autotest not finding them
$ rake test
$ rake test
(in /Users/ethan/project/mtc/completestreets)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/mtc_user_sessions_controller_test.rb" "test/functional/sessions_controller_test.rb"
Loaded suite /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
...
Finished in 0.119673 seconds.
3 tests, 3 assertions, 0 failures, 0 errors
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
Loaded suite /usr/bin/rake
Started
Finished in 0.000228 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
$ autotest
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit test/tes开发者_运维问答t_helper.rb].each { |f| require f }" | unit_diff -u
Loaded suite -e
Started
Finished in 0.000207 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
Any illuminating insights?
hey, i think you will find the answer here: ZenTest autotest not running tests
lots of people had this issue a while back and resolved it by downgrading ZenTest - I dunno if that will help you... which version are you on anyway?
There's a pretty cool tutorial here which shows you how to get autotest running with rspec and growl (or GnomeNotify): http://www.railstutorial.org/chapters/static-pages#sec:installing_autotest in case you're interested
精彩评论