0
0
Testing Fundamentalstesting~20 mins

Continuous testing in CI/CD in Testing Fundamentals - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Continuous Testing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the main purpose of continuous testing in a CI/CD pipeline?

Continuous testing is a key part of CI/CD. What is its main goal?

ATo run tests only after the entire software is deployed to production
BTo automatically run tests early and often to catch bugs quickly
CTo manually check code quality before merging changes
DTo delay testing until all features are complete
Attempts:
2 left
💡 Hint

Think about when tests should run to find problems fast.

💻 Command Output
intermediate
2:00remaining
What is the output of this Jenkins pipeline stage running tests?

Given this Jenkinsfile snippet, what will be the output if tests fail?

Testing Fundamentals
stage('Test') {
  steps {
    sh 'pytest tests/'
  }
}
AThe pipeline stops and marks the build as failed
BThe pipeline continues to deploy even if tests fail
CThe pipeline ignores test results and passes
DThe pipeline retries tests indefinitely
Attempts:
2 left
💡 Hint

How does Jenkins treat shell command failures by default?

🔀 Workflow
advanced
2:30remaining
Order the steps in a typical continuous testing workflow in CI/CD

Arrange these steps in the correct order for continuous testing in a CI/CD pipeline.

A2,3,1,4
B3,2,1,4
C2,1,3,4
D1,2,3,4
Attempts:
2 left
💡 Hint

Think about what happens first: code push or pipeline trigger?

Troubleshoot
advanced
2:30remaining
Why might tests not run automatically in a CI/CD pipeline?

You set up a CI/CD pipeline but notice tests are not running after code pushes. What could cause this?

AThe code repository is empty
BThe CI/CD server is offline permanently
CThe test commands are missing or incorrectly specified in the pipeline config
DThe developer forgot to write any tests
Attempts:
2 left
💡 Hint

Check the pipeline configuration for test steps.

Best Practice
expert
3:00remaining
Which practice best improves test reliability in continuous testing?

In continuous testing, which practice helps ensure tests give consistent results?

ARunning tests only on developer machines
BRunning tests manually after deployment
CSkipping tests that sometimes fail randomly
DUsing isolated test environments that reset before each run
Attempts:
2 left
💡 Hint

Think about how to avoid test failures caused by leftover data or state.