Bird
0
0

Which file is commonly used to configure coverage reporting settings in a Django project?

easy📝 Conceptual Q2 of 15
Django - Testing Django Applications
Which file is commonly used to configure coverage reporting settings in a Django project?
Aurls.py
Bsettings.py
C.coveragerc
Dmanage.py
Step-by-Step Solution
Solution:
  1. Step 1: Identify coverage config file

    The .coveragerc file is the standard config file for coverage.py settings.
  2. Step 2: Differentiate from Django files

    settings.py configures Django itself, urls.py manages routes, and manage.py runs commands.
  3. Final Answer:

    .coveragerc -> Option C
  4. Quick Check:

    Coverage config file = .coveragerc [OK]
Quick Trick: Use .coveragerc to customize coverage behavior [OK]
Common Mistakes:
MISTAKES
  • Confusing Django settings.py with coverage config
  • Thinking manage.py holds coverage settings
  • Assuming urls.py configures coverage

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Django Quizzes