Passing and Failing Tests

noun

say it: “PAS-ing and FAYL-ing tests” /ˈpæsɪŋ ænd ˈfeɪlɪŋ tɛsts/

A passing test (green) shows the code does what's expected; a failing one (red) shows what broke.

What is Passing and Failing Tests?

A passing test means the code behaved as expected; a failing test shows what went wrong. In TDD you watch a test fail before writing the code that makes it pass.

In a sentence

  • “Test Explorer lists passing and failing tests, with the failures in red at the top.”

Level: Novice · More Unit Testing terms at this level

Updated