API Testing · Senior · Question 65 of 75
Why is it useful to version and review test data definitions like code?
- 1Changes to shared fixtures can break many tests silently
- 2Test data in Git makes the API faster in tests
- 3Reviewers can't read test code without the data
Show the answer
Correct answer: Changes to shared fixtures can break many tests silently
Explanation
Factories and seed files are shared dependencies. Reviewing them prevents surprises like a renamed default user.