API Testing · Middle · Question 54 of 75
What is the benefit of running API tests against a preview environment per pull request?
- 1Preview environments don't need any test data at all
- 2It removes the need for unit tests in the service
- 3Bugs are caught before merge, against the exact change
Show the answer
Correct answer: Bugs are caught before merge, against the exact change
Explanation
Each change gets its own deployment, so tests don't fight over a shared staging and failures point to the change.