Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Test oracle, property-based test » ?

Aussi appelé : test oracle · property-based test

Definition 12.7 University Computer Science — Year 1 · Chapitre 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.

Lire dans le chapitre →