API Testing · Senior · Question 58 of 75

How should API tests handle feature flags?

Show the answer

Correct answer: Set flags per test or project and test both states of key flags

Explanation

Flags change API behaviour too. Uncontrolled flags make tests flaky when someone toggles them in shared environments.

Further reading

Problem with a question

API Testing · Senior · question 58

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