Test Oracle
The source of truth a test uses to decide whether the observed behavior is correct.
What is Test Oracle?
What is Test Oracle?
A test oracle is whatever tells a test what the right answer should be—an expected value, a baseline snapshot, a specification, or a known-good reference. Without a reliable oracle, a test can observe behavior but can't judge whether it's correct, which is why choosing good oracles is central to meaningful testing. Oracles range from simple hard-coded expectations to golden fixtures and visual baselines. The strength of your assertions is only as good as the oracle behind them, so investing in trustworthy references pays off in every run.