How would you approach test levels for a feature shared by several services?
Answer
Start by clarifying the user goal, product context and decision the test evidence must support. Focus on test levels for a feature shared by several services. Use observable requirements, user outcomes and credible comparison sources as the oracle. Cover positive, negative, boundary and change-related risks. Keep data and dependencies controlled enough to reproduce failures. Release only when the residual risk is explicit and the agreed acceptance criteria have objective evidence.
Strong answer includes
- explicit risk and test oracle for test levels
- distinguishes evidence from proof
- connects terminology to a practical decision
- measurable evidence and residual-risk statement
Practical example
For a feature spanning three services, the team approached test levels by keeping most coverage in fast component tests within each service, adding a thin layer of integration tests at the service boundaries, and only two or three system-level tests for the full user journey.