Bird
0
0

Given you ran coverage run -m pytest successfully, which command shows a text summary of coverage results?

medium📝 component behavior Q13 of 15
Flask - Testing Flask Applications
Given you ran coverage run -m pytest successfully, which command shows a text summary of coverage results?
Acoverage report
Bpytest --coverage
Ccoverage html
Dflask coverage report
Step-by-Step Solution
Solution:
  1. Step 1: Identify commands for coverage output

    'coverage report' shows a text summary in the terminal, while 'coverage html' creates a web page report.
  2. Step 2: Eliminate incorrect options

    'pytest --coverage' is not a standard command, and 'flask coverage report' is invalid.
  3. Final Answer:

    coverage report -> Option A
  4. Quick Check:

    Text summary command = coverage report [OK]
Quick Trick: Use 'coverage report' for text summary, 'coverage html' for web report [OK]
Common Mistakes:
MISTAKES
  • Confusing 'coverage html' with text output
  • Using invalid commands like 'pytest --coverage'
  • Trying 'flask coverage report' which doesn't exist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes