問題文
A team is deciding what kind of testing to run in each environment. Which allocation matches common practice for a code-promotion setup?
選択肢
- Unit tests run on every change in the development environment, integration tests run in a staging environment against representative data, and production runs the validated pipelines, since each gate matches the data it can reach.
- All testing happens in production against live data, because only production data reveals real failures, and the team fixes what breaks as the traffic reveals it.
- Integration tests run on every change in the development environment, and unit tests run only in staging where representative data is available, where representative data makes the assertions meaningful.
- Unit tests and integration tests both run only at release time, because running them more often provides no additional signal; the release gate carries the whole burden.