API Testing · Senior · Question 51 of 75
How can mutation testing evaluate an API test suite?
- 1Change the API version and see if docs update
- 2Change test data randomly and see if the server notices
- 3Change server logic slightly and see if any API test fails
Show the answer
Correct answer: Change server logic slightly and see if any API test fails
Explanation
If flipping a validation rule leaves all tests green, the suite doesn't check it. Mutation scores point to weak assertions.