在JUnit 5中将测试摘要打印到控制台

huangapple 未分类评论53阅读模式
英文:

Print test summary to console in JUnit 5

问题

在JUnit 5中,是否有可能在所有测试结束时将测试摘要打印到控制台?

它应该包含一个失败的测试列表,以及一个成功的测试列表。

英文:

Is it possible in JUnit 5 to print a test summary at the end of all tests to the console?

It should contain a list of the tests that have failed, and a list of the ones that were successful.

答案1

得分: 0

尝试运行 gradle test -i,这将打印测试案例的结果和最终输出结果。

英文:

try gradle test -i
this will print test cases with result and the final output result.

huangapple
  • 本文由 发表于 2020年4月7日 15:56:45
  • 转载请务必保留本文链接:https://java.coder-hub.com/61075321.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定