Skip to content

Instantly share code, notes, and snippets.

@mfaisalkhatri
Created December 20, 2024 07:59
Show Gist options
  • Save mfaisalkhatri/fd82357e5023f49bb7950c86c3aac120 to your computer and use it in GitHub Desktop.
Save mfaisalkhatri/fd82357e5023f49bb7950c86c3aac120 to your computer and use it in GitHub Desktop.
Criteria JUnit 4 JUnit 5
Architecture Everything was packaged together in a single JAR file. Divided into 3 sub-projects:
- JUnit Platform
- JUnit Jupiter
- JUnit Vintage
JDK Version Requirement Requires Java 5 or higher Requires Java 8 or higher
3rd Party Integration No 3rd party integration support for plugins and IDEs Dedicated sub-project (JUnit Platform) for 3rd party integrations
Support for Nested Tests No annotation provided for writing Nested tests Provides @Nested annotation to write Nested tests
Support for Registering Custom Extensions No support for custom extensions Provides @ExtendWith annotation to register custom extensions
Changes Made to Commonly Used Annotations - @BeforeClass
- @AfterClass
- @Before
- @After
- @Ignore
- @BeforeAll
- @AfterAll
- @BeforeEach
- @AfterEach
- @Disabled
Annotation Changes for Tagging and Filtering @Category annotation is used @Tag annotation is used
Test Suites @RunWith and @Suite annotations were used @Suite, @SelectPackages, and @SelectClasses annotations are used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment