Bird
0
0

What will happen if you run coverage report -m after tests?

medium📝 Predict Output Q5 of 15
Django - Testing Django Applications
What will happen if you run coverage report -m after tests?
AClear previous coverage data
BRun tests again with coverage
CGenerate an HTML report
DShow coverage report with missing lines highlighted
Step-by-Step Solution
Solution:
  1. Step 1: Understand '-m' option in coverage report

    The '-m' flag shows missing lines in the coverage report output.
  2. Step 2: Confirm behavior of coverage report -m

    It displays which lines were not executed during tests, helping find gaps.
  3. Final Answer:

    Show coverage report with missing lines highlighted -> Option D
  4. Quick Check:

    coverage report -m = show missing lines [OK]
Quick Trick: Use '-m' to see uncovered lines in report [OK]
Common Mistakes:
MISTAKES
  • Thinking it reruns tests
  • Expecting HTML output
  • Assuming it clears data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Django Quizzes