有什么办法让 sbt 停止打印这么多信息吗?

发布于 2024-10-31 06:30:36 字数 1571 浏览 6 评论 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
> 

有什么方法可以使它只显示规格线?

When running tests with sbt, there is so much crap that's printed that I miss all of the useful information. Running the example specs, here is everything I get:

> 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
> 

Is there any way to make it so it only shows the spec lines?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

脱离于你 2024-11-07 06:30:36

您尝试过警告吗?

> warn
Set log level to warn

Have you tried warn?

> warn
Set log level to warn
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文