API Testing · Senior · Question 31 of 75
What does property-based testing add to API test suites?
- 1Many generated inputs checked against invariants
- 2Faster runs by skipping rarely used endpoints
- 3Tests that check the properties of JSON objects
Show the answer
Correct answer: Many generated inputs checked against invariants
Explanation
Invariants like "creating then reading returns the same data" or "no input causes a 500" find edge cases nobody listed.