green and red
Shorthand for a passing (green) or failing (red) test run, from the colours test tools and build systems use.
In more detail
A green run means every selected test passed; a red run means at least one failed. Green only means the claims you wrote held, not that the software is correct. A team that learns to shrug at red because tests are unreliable has lost most of the value of its suite.
Related terms
- automated test — A small program that runs part of your code and checks that it did what you claimed it would.
- flaky test — A test that sometimes passes and sometimes fails on the same code, because it depends on something it does not control.
- quality gate — A check, or set of checks, that a change must pass before it can move on, such as being merged or promoted to the next pipeline stage.
Taught in
- The Cost And Value Of A Test — Automated Testing, TDD & Quality Engineering
- Naming Tests For Readability — Automated Testing, TDD & Quality Engineering
- Why Over-Mocking Breeds False Positives — Automated Testing, TDD & Quality Engineering
- What To Automate Away — Automated Testing, TDD & Quality Engineering