O'Reilly logo

Mastering Software Testing with JUnit 5 by Boni García

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JUnit 5 motivation

According to several studies, JUnit 4 is the most used library for Java projects. For instance, The Top 100 Java libraries on GitHub is a well-known report published by OverOps (@overopshq), a software analytics company focused on large-scale Java and Scala code bases.

In its edition of 2017, this report analyzed the import statements of unique Java libraries that are used by the top 1,000 Java projects on GitHub (by stars). In the light of the results, JUnit 4 is the undisputed king of Java Libraries: the imports of the packages org.junit and org.junit.runner appear in the first and second position, respectively:

The Top ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required