Vor zwei Tagen wurde die neue JUnit Version 5.6.0 veröffentlicht.
Also die BOM aktuallisieren:
<dependency> <groupId>org.junit</groupId> <artifactId>junit-bom</artifactId> <version>5.6.0</version> <type>pom</type> </dependency>
Und ein kleiner Test mit zwei Projekten:
Alles Super. Was gibt es Neues:
New @EnabledForJreRange and @DisabledForJreRange execution conditions
@Order allows to specify relative order
Parameter names are included in default display names of parameterized test invocations
Improvements to @CsvSource and @CsvFileSource
New TestInstancePreDestroyCallback extension API
Performance improvements and bug fixes for the Vintage engine
Improved error reporting for failures during test discovery and execution
Support for using any() and none() in tag expressions
org.junit.platform.console now provides a java.util.spi.ToolProvider
DiscoverySelectors for tests in inherited nested classes
OSGi metadata
Minor bug fixes and improvements
Danke an das Team!
Ähnliche Artikel:
- Rest Test Programm: Java Migration von JUnit 4 nach JUnit 5 (1.0.0.-M6)
- OK „Freut euch immer“">OK „Freut euch immer“">OK „Freut euch immer“">Quicktest der neuen Eclipse 2019-12 IDE –>OK „Freut euch immer“
- JUnit 5 @ParameterizedTest mit @ValueSource oder 3 Gründe warum man keine JUnit Tests schreiben sollte!