Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 自动测试不测试_Ruby_Unit Testing_Ruby On Rails 3_Continuous Integration_Autotest - Fatal编程技术网

Ruby 自动测试不测试

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

自动测试似乎不适合我。我已经安装了似乎所有的依赖项。当我在代码中进行更改或强制测试失败时,在运行自动测试时不会发生任何事情

当我以“自动测试”或“bundle exec autotest”的形式运行自动测试时,我会看到以下内容:

(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,它们就工作了。