JUnit

The standard testing framework for Java, which discovers methods marked @Test, runs them and reports each failure with the test's name.

In more detail

JUnit 5 is made of the JUnit Platform, which launches tests, and JUnit Jupiter, the programming model you write tests in. Its XML results format became the common way for continuous integration systems to read test results, so test runners in other languages can write JUnit XML too.

Examples

This course uses org.junit.jupiter:junit-jupiter:5.14.4, run by Maven Surefire and Gradle.
org.junit.jupiter:junit-jupiter:5.14.4
In this course: JUnit uses annotations such as @Test and tags where pytest uses markers, and has an extension for temporary directories. Build tools such as Maven and Gradle and most code editors run JUnit tests directly.

Related terms

Taught in

References

Certification courses