1

Rake 太冗长了:

$ 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”。

这可能吗?谢谢!

4

1 回答 1

1

如果不修改 rake 任务和/或测试库,您将无法获得此信息。只需找出不需要的行。

bundle exec rake test:units | grep -vP "^(Started|Loaded|\/)"
于 2012-10-01T18:12:48.963 回答