Open
Description
This issue #1824 still exists in jee-2025-03
To reproduce
-
Install Eclipse JEE 2025-03
-
Clone JUnit5 sample repo https://github.com/junit-team/junit5-samples/
-
Add surefire config to
junit5-samples/junit5-jupiter-starter-maven/pom.xml
, Line 40ff<plugin> <artifactId>maven-surefire-plugin</artifactId> <version>3.5.2</version> <configuration> <argLine>@{argLine} -Xshare:off -Dfile.encoding=UTF-8</argLine> </configuration> </plugin>
Using
@{argLine}
is needed because of late property evaluation -
Import folder/project
junit5-samples/junit5-jupiter-starter-maven/
in eclipse -
Right click test class
CalculatorTests
and Select Run As > JUnit Test
Additional Info
- Selecting a package and using Run As > JUnit Test does work
- Selecting a Test Class with
@Nested
classes and running only a nested test class does work, too
Edit: This also applies to the maven-failsafe-plugin for integration tests
Metadata
Metadata
Assignees
Labels
No labels