2012-01-27 8 views
1

複数のスクリプトから複数のテストケースを実行できますが、「100%合格」または「X失敗」のいずれかの出力があり、失敗したテストがリストされますか?例えばRubyテストユニット:複数のスクリプト、1つの出力

私はのようなものを見たい:私はZenTestの一部であるautotestコマンドとともに、内蔵MiniTest::Unit使用して、同じような出力が得られ

>runtests.rb all #runs all the scripts in the directory 
Finished in 4.523 Seconds 
100% Pass 

>runtests.rb category #runs all the scripts in a specified sub-directory 
Finished in 2.1 Seconds 
2 Failed: 
test_my_test 
test_my_test_2 
1 Error: 
test_my_test_3 

答えて

2

autotest 
/Users/tinman/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit tests/test_domains.rb tests/test_regex.rb tests/test_vlan.rb tests/test_nexus.rb tests/test_switch.rb tests/test_template.rb].each { |f| require f }" 
Loaded suite -e 
Started 
........................................ 
Finished in 0.143375 seconds. 

40 tests, 276 assertions, 0 failures, 0 errors, 0 skips 

Test run options: --seed 62474 

されていますそれはあなたが話しているものに似ていますか?

関連する問題