Closed
Description
Steps to reproduce
We are launching tests with the following command:
java -cp ./junit-platform-console-standalone-1.7.1.jar:./jar-file-with-tests.jar org.junit.platform.console.ConsoleLauncher --select-package=root.package.for.all.tests --reports-dir /specified/path
jar-file-with-tests.jar
does contain a lot of classes with methods marked with @Test
annotation.
This command works fine when:
- we use
junit-platform-console-standalone
version 1.7.0 both on Java 8 and Java 11 - we use
junit-platform-console-standalone
version 1.7.1 or 1.8.0-M1 on Java 11
When launching 1.7.1 console on Java 8 the report states that 2 containers were found (2 containers found
, 2 containers started
and 2 containers successful
), no tests are present in the report (all other values in the report are 0 (like 0 tests found
))
Context
The testing project (jar-file-with-tests.jar
) is built using Java 8.
Issue seems to occur both in Windows and Linux environments.