Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What is the purpose of junit jupiter in junit 5?


Asked by Derek Bender on Dec 06, 2021 jUnit



JUnit Jupiter It includes new programming and extension models for writing tests. It has all new junit annotations and TestEngine implementation to run tests written with these annotations. JUnit Vintage It primary purpose is to support running JUnit 3 and JUnit 4 written tests on the JUnit 5 platform. It’s there are backward compatibility.
In addition,
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.
In fact, 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.
Keeping this in consideration,
The JUnit Jupiter Test Engine You’ll use the JUnit Jupiter Test Engine to discover and execute your JUnit Jupiter unit tests. The test engine implements the TestEngine interface, which is part of the JUnit Platform. You can think of the TestEngine as the bridge between your unit tests and the tools you use to launch them (like your IDE).
Also,
It’s important, however, to understand that the two terms are not the same. JUnit Jupiter is the API for writing tests using JUnit version 5. JUnit 5 is the project name (and version) that includes the separation of concerns reflected in all three major modules: JUnit Jupiter, JUnit Platform, and JUnit Vintage.