Migrating From JUnit 4
- JUnit 5 vs JUnit 4 is a hands-on guide that describes the differences between JUnit 4 and 5. It also provides a list of blog posts that help you to get started with JUnit 5.
- Migrating from JUnit 4 to JUnit 5 is a practical post that identifies the differences between JUnit 4 to JUnit 5. This information helps you to migrate your existing tests from JUnit 4 to JUnit 5.
- JUnit 5 User Guide: 6. Migrating from JUnit 4 describes how you can run your existing tests with JUnit 5 and provides tips that help you to make the required changes to your existing tests.
JUnit 5 Architecture
- JUnit 5 – Architecture is an excellent blog post that provides a comprehensive description of the JUnit 5 architecture. The interesting thing about this blog post is that also describes the reasons behind the design decisions made by JUnit 5 team.
Using Maven and Gradle
- JUnit 5 Tutorial: Running Unit Tests With Maven describes how you can get the required dependencies with Maven and create a Maven project that runs your unit tests.
- JUnit 5 Tutorial: Running Unit Tests With Gradle describes how you can get the required dependencies with Gradle and create a Gradle project that runs your unit tests.
Getting Started With JUnit 5
- The top five reasons you should be using JUnit 5 right now explains the benefits of using JUnit 5 and reveals (surprisingly) five reasons why you should give it a shot.
- The five coolest new features of JUnit 5 introduces five features that should convince you to start using JUnit 5.
- A Look at JUnit 5’s Core Features & New Testing Functionality is a practical blog post that provides a quick introduction to the new features of JUnit 5.
- Introducing JUnit 5, Part 1 – The JUnit 5 Jupiter API is a very good blog post that provides an overview of the JUnit 5 architecture and helps you to write your first unit tests with JUnit 5.
- Introducing JUnit 5, Part 2 – JUnit 5 Vintage and the JUnit Jupiter Extension Model is a very good blog post that describes what JUnit vintage and explains how it works. This post also provides an introduction to the JUnit 5 extension model and explains how you can use it for writing dynamic and parameterized tests.
- JUnit 5 – Parameterized Tests is an excellent blog post that describes how you can write parameterized tests with JUnit 5.
- JUnit 5 Tutorial: Writing Our First Test Class describes how you can use setup and teardown methods, and add test method to your test class. Note that this tutorial assumes that you have no previous experience from JUnit 4.
- A Guide to JUnit 5 Extensions provides a quick introduction to the JUnit 5 extension model and describes how you can write your first JUnit 5 extension.
- JUnit 5 – Conditions is a very comprehensive blog post that describes how you can disable test methods by using conditions.
- JUnit 5 – Extension Model is an excellent blog post that describes the JUnit 5 extension model. The best part of this blog post is that the author identifies the reasons behind the technical decisions made by the JUnit 5 team.