Ruby 自动测试不测试
自动测试似乎不适合我。我已经安装了似乎所有的依赖项。当我在代码中进行更改或强制测试失败时,在运行自动测试时不会发生任何事情 当我以“自动测试”或“bundle exec autotest”的形式运行自动测试时,我会看到以下内容:Ruby 自动测试不测试,ruby,unit-testing,ruby-on-rails-3,continuous-integration,autotest,Ruby,Unit Testing,Ruby On Rails 3,Continuous Integration,Autotest,自动测试似乎不适合我。我已经安装了似乎所有的依赖项。当我在代码中进行更改或强制测试失败时,在运行自动测试时不会发生任何事情 当我以“自动测试”或“bundle exec autotest”的形式运行自动测试时,我会看到以下内容: (Not running features. To run features in autotest, set AUTOFEATURE=true.) loading autotest/rails_rspec2 以下是我的档案摘录: gem "rspec-rails
(Not running features. To run features in autotest, set AUTOFEATURE=true.)
loading autotest/rails_rspec2
以下是我的档案摘录:
gem "rspec-rails"
gem "cucumber-rails"
gem "webrat"
gem 'ZenTest'
gem 'test_notifier'
gem 'autotest'
gem 'autotest-rails'
gem 'autotest-fsevent'
gem 'autotest-growl'
gem 'redgreen'
以下是my discover.rb:
Autotest.add_discovery { "rails" }
Autotest.add_discovery { "rspec2" }
我使用的是rails 3.0.0和ruby 1.8.7
谢谢你的帮助 rspec2最近有一些更新,涉及自动测试签出最新版本和发行说明当我在/spec目录中有一些规范时,这就发生在我身上了。一旦我将它们移动到/specs/models,它们就工作了。