Assumptions

Learn about Assumptions in JUnit 5.

We'll cover the following...

At times, we have to make sure a set of preconditions are fulfilled before executing the test.

These preconditions may be necessary due to a number of external factors—such as environment configuration, or if we want to run the test only on the continuous integration (CI) environment and not on the local developer machine.

We can achieve this conditional test execution using the assumption ...