Junit 5 what we will learn in testing Junit framework

in #testing6 years ago

JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage

The JUnit Platform serves as a foundation for launching testing frameworks on the JVM. It also defines the TestEngine API for developing a testing framework that runs on the platform. Furthermore, the platform provides a Console Launcher to launch the platform from the command line and build plugins for Gradle and Maven as well as a JUnit 4 based Runner for running any TestEngine on the platform.

JUnit Jupiter is the combination of the new programming model and extension model for writing tests and extensions in JUnit 5. The Jupiter sub-project provides a TestEngine for running Jupiter based tests on the platform.

JUnit Vintage provides a TestEngine for running JUnit 3 and JUnit 4 based tests on the platform.

New Annotations is Junit 5 Testing framework
(1)@Test
(2) @ParameterizedTest
(3) @RepeatedTest
(4) @TestFactory
(5) @TestInstance
(6)@TestTemplate
(7)@DisplayName
(8) @BeforeEach
(9) @AfterEach
(10) @BeforeAll
(11) @AfterAll
(12) @Nested
(13) @Tag
(14) @Disabled
(15) @ExtendWith