Bird
0
0

You added --junitxml=report.xml to your pytest command, but the CI tool shows no test report. What is the most likely cause?

medium📝 Debug Q14 of 15
Selenium Python - CI/CD Integration
You added --junitxml=report.xml to your pytest command, but the CI tool shows no test report. What is the most likely cause?
AThe tests did not run due to errors in test code
BThe pytest command syntax is incorrect
CThe CI tool does not support XML reports
DThe report.xml file is not saved in the CI workspace directory
Step-by-Step Solution
Solution:
  1. Step 1: Check report file location

    CI tools need the report file in the workspace folder to read it. If saved elsewhere, the tool won't find it.
  2. Step 2: Verify other causes

    The command syntax is correct, tests likely ran, and most CI tools support XML reports, so the missing file location is the main issue.
  3. Final Answer:

    The report.xml file is not saved in the CI workspace directory -> Option D
  4. Quick Check:

    Report file location matters in CI [OK]
Quick Trick: Ensure report file is in CI workspace folder [OK]
Common Mistakes:
  • Assuming command syntax error without checking
  • Ignoring file save location
  • Thinking CI tools don't support XML reports

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Selenium Python Quizzes