2011-04-10 42 views
0

當用sbt運行測試時,打印的垃圾太多了,我錯過了所有有用的信息。運行示例規格,這裏是我得到的一切:有沒有什麼辦法讓停止打印這麼多信息?

> test 
[info] 
[info] == compile == 
[info] Source analysis: 0 new/modified, 0 indirectly invalidated, 0 removed. 
[info] Compiling main sources... 
[info] Nothing to compile. 
[info] Post-analysis: 17 classes. 
[info] == compile == 
[info] 
[info] == copy-resources == 
[info] == copy-resources == 
[info] 
[info] == copy-test-resources == 
[info] == copy-test-resources == 
[info] 
[info] == test-compile == 
[info] Source analysis: 0 new/modified, 0 indirectly invalidated, 0 removed. 
[info] Compiling test sources... 
[info] Nothing to compile. 
[info] Post-analysis: 6 classes. 
[info] == test-compile == 
[info] 
[info] == test-start == 
[info] == test-start == 
[info] 
[info] == spec.game.battle.gameobject.component.health.event.helloWorld == 
[info] + 'hello world' has 11 characters 
[info] + 'hello world' matches 'h.* w.*' 
[info] == spec.game.battle.gameobject.component.health.event.helloWorld == 
[info] 
[info] == test-complete == 
[info] == test-complete == 
[info] 
[info] == Test cleanup 1 == 
[info] Deleting directory C:\Users\..\AppData\Local\Temp\sbt_cc3b61d5 
[info] == Test cleanup 1 == 
[info] 
[info] == test-finish == 
[info] Passed: : Total 2, Failed 0, Errors 0, Passed 2, Skipped 0 
[info] 
[info] All tests PASSED. 
[info] == test-finish == 
[info] 
[info] == test-cleanup == 
[info] == test-cleanup == 
[info] 
[info] == test == 
[info] == test == 
[success] Successful. 
[info] 
[info] Total time: 1 s, completed Apr 9, 2011 8:12:47 PM 
> 

是否有任何方式使它只顯示spec行?

回答

3

你試過warn

> warn 
Set log level to warn 
+0

儘管這樣可以擺脫字面上的一切。我仍然想看看測試結果。 – ryeguy 2011-04-10 03:03:22

相關問題