QA Fundamentals · Senior · Question 24 of 76

What is property-based testing?

Show the answer

Correct answer: Checking that a property holds for many generated inputs

Explanation

Instead of examples, you state invariants like 'decode(encode(x)) equals x'. The tool generates and shrinks inputs to find minimal failing cases.

Further reading

Problem with a question

QA Fundamentals · Senior · question 24

Test yourself

Take the QA Fundamentals · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz