Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Test oracle, property-based test?

Também chamado de: test oracle · property-based test

Definition 12.7 University Computer Science — Year 1 · Capítulo 12 — Program Correctness

A test oracle is a procedure that decides whether an output is correct for an input: a check of the postcondition, or a comparison with a simpler program known to be correct (a brute-force or library version). A property-based test states a property that must hold for all inputs of a kind, generates many inputs at random, checks the property on each, and on a failure reports a smallest failing input it can find.

Ler no capítulo →