$ 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”。
这可能吗?谢谢!
答案 0 :(得分:1)
如果不修改rake任务和/或测试库,您将无法获得此功能。只是掏出不受欢迎的线条。
bundle exec rake test:units | grep -vP "^(Started|Loaded|\/)"