3
Rspec嘗試在運行任何spec文件或整個測試套件結束時運行Test :: Unit測試。這仍是好的,因爲我沒有任何測試單元測試文件,但它試圖傳遞給rspec的命令行選項,因爲它們是測試::單位導致如何在最後停止運行測試單元的rspec?
Finished in 0.54616 seconds
7 examples, 0 failures
invalid option: -O
Test::Unit automatic runner.
Usage: /usr/local/bin/rspec [options] [-- untouched arguments]
-r, --runner=RUNNER Use the given RUNNER.
(c[onsole], f[ox], g[tk], g[tk]2, t[k])
-n, --name=NAME Runs tests matching NAME.
(patterns may be used).
-t, --testcase=TESTCASE Runs tests in TestCases matching TESTCASE.
(patterns may be used).
-I, --load-path=DIR[:DIR...] Appends directory list to $LOAD_PATH.
-v, --verbose=[LEVEL] Set the output level (default is verbose).
(s[ilent], p[rogress], n[ormal], v[erbose])
-- Stop processing options so that the
remaining options will be passed to the
test.
-h, --help Display this help.
Deprecated options:
--console Console runner (use --runner).
--gtk GTK runner (use --runner).
--fox Fox runner (use --runner).
如何停止的RSpec從運行測試單元測試?測試寶石
版本我使用的是
gem 'rspec', '~> 2.7'
gem 'rspec-instafail'
gem 'ci_reporter'
gem 'rspec-rails', '~> 2.7'
gem 'shoulda', :require => false # 2.3.3
gem 'factory_girl', '~> 2.6.4'
gem 'rr'
gem 'timecop'
gem 'rcov'
gem 'database_cleaner'
gem 'webmock', '~> 1.9.3'
gem 'vcr'
gem 'fakeweb', '~> 1.3.0'
gem 'spork', '~> 0.8.0'
gem 'webrat'