Bird
0
0

You wrote a test case but it always passes even when the feature is broken. What is the most likely problem?

medium📝 Debug Q14 of 15
Testing Fundamentals - Why Software Testing Matters
You wrote a test case but it always passes even when the feature is broken. What is the most likely problem?
AThe feature is actually working fine.
BThe test case is missing assertions to check results.
CThe test environment is down.
DThe test case has too many steps.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze why test always passes despite broken feature

    If a test passes wrongly, it likely lacks proper checks (assertions).
  2. Step 2: Evaluate other options

    Feature broken means B is false; environment down or too many steps don't cause false passes.
  3. Final Answer:

    The test case is missing assertions to check results. -> Option B
  4. Quick Check:

    Missing assertions cause false passes [OK]
Quick Trick: Always include assertions to verify expected results [OK]
Common Mistakes:
  • Assuming feature is fine without checking
  • Ignoring missing assertions
  • Blaming environment without evidence

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes