耙子测试发现测试。自动测试没有找到它们
$ 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/test_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
有什么启发性的见解吗?
$ 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/test_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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嘿,我想你会在这里找到答案: ZenTest 自动测试未运行测试
很多人们不久前遇到了这个问题,并通过降级 ZenTest 解决了它 - 我不知道这是否会对您有帮助...您使用的是哪个版本?
这里有一个非常酷的教程,向您展示如何使用 rspec 和咆哮(或 GnomeNotify)运行自动测试: http://www.railstutorial.org/chapters/static-pages#sec:installing_autotest
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