Rake太冗长,回声测试命令

时间:2012-10-01 18:03:04

标签: ruby rake testunit

耙太啰嗦了:

$ bundle exec rake test:units
/Users/jared/.rvm/rubies/ruby-1.8.7-p370/bin/ruby -I"lib:test" -I"/Users/jared/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib" "/Users/jared/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/unit/**/*_test.rb" 
Loaded suite /Users/jared/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started
.....................................

这就是我想要的:

$ bundle exec rake test:units
.....................................

我仍然希望看到测试错误+失败,弃用警告或任意“stdout sentinels”。

这可能吗?谢谢!

1 个答案:

答案 0 :(得分:1)

如果不修改rake任务和/或测试库,您将无法获得此功能。只是掏出不受欢迎的线条。

bundle exec rake test:units | grep -vP "^(Started|Loaded|\/)"