Practice free →
HomeSoftware TestingSoftware Testingtools_automation_cicd › In a CI pipeline, unit tests are typically run

In a CI pipeline, unit tests are typically run

AOnly once a month by senior devs
BOn every commit before any deployment
COnly manually before each release
DOnly after deployment to production
Answer & Solution
Correct answer: B. On every commit before any deployment
Unit tests are fast, deterministic, and run on every commit/PR by the CI pipeline. Failures block the merge. Integration and end-to-end tests run at later pipeline stages, sometimes on a schedule rather than per commit.
Solve this in the app — Software Testing practice & 24k+ MCQs →
Related questions