JUnit 5.6.0 release, Java unit testing framework

JUnit 5.6.0 was released. JUnit is a unit testing framework for Java language, it has its own JUnit extension ecosystem, most Java development environments have been integrated as a tool for JUnit unit testing. JUnit test is a programmer tests, the so-called white-box testing, because of how the software being tested (How) completion and what (What) function to complete the programmers know. In addition JUnit is highly recommended for use in extreme programming and refactoring tools.

JUnit 5.6.0 = Platform 1.6.0 + Jupiter 5.6.0 + Vintage 5.6.0, which is composed of three distinct modules:

  • JUnit platform , its main role is to start testing framework on the JVM. It defines an abstract TestEngine API framework to define the test run on the platform, and also supports command line, Gradle and Maven to run the platform.
  • Jupiter JUnit , JUnit 5 contains the latest programming model and extension mechanism.
  • Vintage JUnit , 3 and allowed to run JUnit 4 JUnit test on the internet.

JUnit 5 minimum requirements for the Java runtime environment is Java 8, but also compatible with older versions of JDK compiler test code, overall improvements 5.6.0:

  • Release for all the work  Gradle Module Metadata
  • All binary JAR published OSGi metadata
  • Javadoc API now includes a module overview page

Major update includes: 

  • New @EnabledForJreRangeand @DisabledForJreRangeexecution conditions
  • @Order It allows you to specify the relative order
  • Parameter name included in the parameter of the test calls the default display name
  • @CsvSourceAnd @CsvFileSourceimprovements
  • The new TestInstancePreDestroyCallbackextended API
  • Vintage engine performance improvements and bug fixes
  • Found during testing and implementation of improved error reporting for failure
  • It supports the use of the marker expression any()andnone()
  • org.junit.platform.console Now available java.util.spi.ToolProvider
  • DiscoverySelectors Nested classes to inherit from the test
  • OSGi metadata
  • Minor bug fixes and improvements

Specific modules updates, see the update:

https://junit.org/junit5/docs/5.6.0/release-notes

Guess you like

Origin www.oschina.net/news/112964/junit-5-6-0-released