我正在尝试通过junit-platform-console-runner启动所有测试。
尝试了一些简单的命令,例如:
java -jar C:\git\autotesting\junit-platform-console-standalone-1.5.2.jar -cp C:\git\autotesting\target\test-classes --exclude-engine junit-vintage
尝试过其他讨论中的命令,例如:
java -jar C:\git\autotesting\junit-platform-console-standalone-1.5.2.jar --class-path C:\git\autotesting\target\test-classes --exclude-engine junit-vintage --scan-classpath
console-args.txt包含
--include-engine
junit-jupiter
--exclude-engine
junit-vintage
--disable-ansi-colors
--details
verbose
--details-theme
ascii
--fail-if-no-tests
--reports-dir
C:/junit5/reports
--scan-classpath
但是我只有
Test plan execution started. Number of static tests: 0
.
+-- JUnit Jupiter
'-- JUnit Jupiter finished after 6 ms.
Test plan execution finished. Number of all tests: 0
Test run finished after 97 ms
[ 1 containers found ]
[ 0 containers skipped ]
[ 1 containers started ]
[ 0 containers aborted ]
[ 1 containers successful ]
[ 0 containers failed ]
[ 0 tests found ]
[ 0 tests skipped ]
[ 0 tests started ]
[ 0 tests aborted ]
[ 0 tests successful ]
[ 0 tests failed ]
所有测试都是@ParametrizedTest