Bird
0
0

Which pytest command option correctly generates a JUnit XML report for CI integration?

easy📝 Syntax Q3 of 15
Selenium Python - CI/CD Integration
Which pytest command option correctly generates a JUnit XML report for CI integration?
A--junitxml=report.xml
B--xmlreport=report.xml
C--reportxml=report.xml
D--generatexml=report.xml
Step-by-Step Solution
Solution:
  1. Step 1: Recall pytest options for XML reports

    pytest uses the option '--junitxml' to create JUnit XML reports.
  2. Step 2: Match the correct syntax

    Only '--junitxml=report.xml' is valid syntax for generating the report.
  3. Final Answer:

    --junitxml=report.xml -> Option A
  4. Quick Check:

    pytest JUnit XML option = --junitxml [OK]
Quick Trick: Use --junitxml to generate XML reports in pytest [OK]
Common Mistakes:
  • Using incorrect option names like --xmlreport
  • Confusing option syntax with extra words
  • Assuming --generatexml is valid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Selenium Python Quizzes