JUnit平台附带的Console Launcher(来自JUnit 5)最终产生了一个非常好的摘要视图.但是,Maven Surefire插件的输出非常简单.
是否可以使用类似于发布创建的Surefire输出创建?
解决方法:
我目前的解决方法是禁用surefire并使用exec-maven-plugin手动运行ConsoleLauncher:
org.apache.maven.plugins
maven-surefire-plugin
default-test
none
org.codehaus.mojo
exec-maven-plugin
test
java
org.junit.platform.console.ConsoleLauncher
--scan-class-path
${project.build.directory}/test-classes
test
org.junit.platform
junit-platform-console-standalone
test
标签:java,junit5
来源: https://codeday.me/bug/20190627/1304123.html