Bird
0
0

Which of the following is the correct command to run pytest with detailed output?

easy📝 Syntax Q12 of 15
PyTest - Basics and Setup
Which of the following is the correct command to run pytest with detailed output?
Apytest -v
Bpytest --detail
Cpytest -d
Dpytest --verbose-output
Step-by-Step Solution
Solution:
  1. Step 1: Recall pytest option for verbose output

    The -v option stands for verbose and shows detailed test results.
  2. Step 2: Check other options for correctness

    Options -d, --detail, and --verbose-output are not valid pytest flags.
  3. Final Answer:

    pytest -v -> Option A
  4. Quick Check:

    Verbose flag is -v = C [OK]
Quick Trick: Use -v for verbose pytest output [OK]
Common Mistakes:
MISTAKES
  • Using -d instead of -v
  • Typing long incorrect flags
  • Confusing verbose with debug flags

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PyTest Quizzes