0
0
Testing Fundamentalstesting~5 mins

Flaky test management in Testing Fundamentals - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a flaky test?
A flaky test is a test that sometimes passes and sometimes fails without any changes in the code. It behaves unpredictably, making it hard to trust the test results.
Click to reveal answer
beginner
Name two common causes of flaky tests.
Common causes include timing issues (like waiting for elements) and dependencies on external systems (like network or database).
Click to reveal answer
beginner
Why is it important to manage flaky tests?
Managing flaky tests is important because they reduce confidence in test results, waste developer time, and can hide real bugs.
Click to reveal answer
intermediate
What is one strategy to handle flaky tests?
One strategy is to isolate flaky tests and fix their root cause, such as adding proper waits or mocking unstable external services.
Click to reveal answer
intermediate
How can test reports help with flaky test management?
Test reports can highlight tests that fail intermittently, helping teams identify and prioritize flaky tests for fixing.
Click to reveal answer
What does a flaky test do?
ASometimes passes and sometimes fails without code changes
BAlways passes
CAlways fails
DRuns faster than other tests
Which of these is a common cause of flaky tests?
AConsistent test data
BClear test steps
CTiming issues like race conditions
DProper test isolation
What is a good first step when you find a flaky test?
AIsolate and investigate the test
BIgnore it and run tests again
CDelete the test immediately
DRun all tests in parallel
How can flaky tests affect a development team?
AIncrease trust in test results
BCause confusion and waste time debugging
CMake tests more reliable
DSave time by running faster
Which tool feature helps identify flaky tests?
ACode style reports
BTest execution time reports
CTest coverage reports
DTest failure frequency reports
Explain what a flaky test is and why it is a problem.
Think about tests that don't behave the same way every time.
You got /3 concepts.
    Describe strategies to manage flaky tests effectively.
    Consider how to find and fix the problem rather than ignoring it.
    You got /4 concepts.