API Testing · Senior · Question 63 of 75

How do you test database migrations that change an API's data?

Show the answer

Correct answer: Run them on realistic data, check API reads and writes before and after

Explanation

Expand-and-contract migrations keep old and new code working. API tests run against both phases.

Further reading

Problem with a question

API Testing · Senior · question 63

Test yourself

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

Take this quiz