spork-testunit没有测试运行

时间:2011-11-11 05:06:27

标签: ruby-on-rails testunit spork

Ruby新手所以请耐心等待......我在Windows上使用JRuby,spork-0.9.0.rc9。我可以使用rake test,但是当我使用testdrb尝试使用testunit时,我的测试不会运行。例如:

testdrb -Itest test\functional\contents_controller_test.rb
Loaded suite contents_controller_test
Started

Finished in 0.113000 seconds.

0 tests, 0 assertions, 0 failures, 0 errors, 0 skips
<-- Slave(2) run done!

使用rake测试:

>rake test TEST=test\functional\contentscontroller_test.rb
c:/dev/apps/jruby-1.6.4/lib/ruby/gems/1.8/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53 warning: already initialized constant WFKV
Loaded suite c:/dev/apps/jruby-1.6.4/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rake_test_loader
Started

ContentsControllerTest:
PASS should create content (0.19s)
PASS should destroy content (0.03s)
PASS should get edit (0.29s)
PASS should get index (0.22s)
PASS should get new (0.06s)
PASS should show content (0.04s)
PASS should update content (0.05s)

Finished in 0.880000 seconds.

7 tests, 17 assertions, 0 failures, 0 errors, 0 skips

0 个答案:

没有答案