Continuous testing is a key part of CI/CD. What is its main goal?
Think about when tests should run to find problems fast.
Continuous testing means running automated tests frequently during development to find bugs early, not waiting until deployment.
Given this Jenkinsfile snippet, what will be the output if tests fail?
stage('Test') { steps { sh 'pytest tests/' } }
How does Jenkins treat shell command failures by default?
In Jenkins, if a shell command like 'pytest' fails (non-zero exit), the pipeline stage fails and stops further steps.
Arrange these steps in the correct order for continuous testing in a CI/CD pipeline.
Think about what happens first: code push or pipeline trigger?
The developer pushes code, then the CI server triggers the pipeline, which runs tests, then reports results.
You set up a CI/CD pipeline but notice tests are not running after code pushes. What could cause this?
Check the pipeline configuration for test steps.
If the pipeline config does not include commands to run tests, tests will not execute automatically.
In continuous testing, which practice helps ensure tests give consistent results?
Think about how to avoid test failures caused by leftover data or state.
Isolated, clean test environments prevent interference from previous runs, improving test reliability.