TestEngine in JUnit 5

Learn about the TestEngine in the JUnit 5 platform.

We'll cover the following

In previous chapters, we focused on the new programming model in JUnit 5, that is, JUnit Jupiter. In this chapter, we’ll discuss the JUnit platform. The JUnit Jupiter and JUnit Vintage platforms are both built on top of this common platform.

The TestEngine

A test engine is responsible for discovering and executing tests for a particular programming model. For example, JUnit Jupiter’s TestEngine discovers and executes tests written using the JUnit Jupiter programming model. Third parties can also provide custom implementations of test engines. Test engines are described using the org.junit.platform.engine.TestEngine interface. The table below shows the methods of TestEngine.

Get hands-on with 1200+ tech skills courses.