JUnit Platform

The foundation of modern JUnit that discovers and runs tests, on which build tools and editors launch test engines such as JUnit Jupiter.

In more detail

Gradle must be told useJUnitPlatform() in its test task, otherwise it looks for tests written for the old JUnit 4 API and runs none. Maven's Surefire plugin detects the platform automatically.

Example

tasks.test { useJUnitPlatform() }

Related terms

Taught in

References