Skip to content
Latchkey

Assertion - CI/CD Glossary Definition

An assertion checks a condition in a test and fails the test when the condition is not met.

An assertion is a statement in a test that checks a condition and fails the test if the condition is false. Assertions are what turn code execution into a pass or fail result.

A test that runs code but makes no assertions passes trivially and gives false confidence, which mutation testing is designed to expose.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →