2011-04-10 5 views
0

sbt로 테스트를 수행 할 때 인쇄 된 쓰레기가 너무 많아서 유용한 정보가 모두 누락되었습니다. 예제 사양을 실행하면 다음과 같은 결과를 얻을 수 있습니다.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 
> 

스펙 라인 만 표시되도록 만드는 방법이 있습니까?

답변

3

warn을 사용해 보셨습니까?

> warn 
Set log level to warn 
+0

문자 그대로 모든 것을 제거합니다. 나는 여전히 테스트 결과를보고 싶습니다. – ryeguy

관련 문제