Introduction
We use assumingThat to run some checks only when certain conditions are true. This helps skip tests that don't apply in some cases.
When you want to test a feature only if a specific environment variable is set.
When you want to run a test only if the operating system is Windows.
When you want to check a value only if a user is logged in.
When you want to skip some assertions if a certain configuration is missing.