wordfor

property-based testing

noun

Software design

  1. Testing by stating rules that must hold for all inputs and letting a tool generate many random inputs to try to break them. A property-based test asserting that decode(encode(x)) equals x found a Unicode bug in minutes.

In plain words

  • test with lots of random inputs
  • I can't think of every test case
  • generate test cases automatically
  • find the input that breaks it

See also invariant edge case eval

Find similar words