Bird
0
0

Given this CI step snippet:

medium📝 Predict Output Q4 of 15
Cypress - CI/CD and Reporting
Given this CI step snippet:
- run: npx cypress run --record --key abc123

What is the effect of the '--record' flag in this command?
AIt records video locally only
BIt records the test run results to Cypress Dashboard
CIt disables test recording
DIt runs tests without recording
Step-by-Step Solution
Solution:
  1. Step 1: Understand '--record' flag meaning

    The '--record' flag sends test results to the Cypress Dashboard service for tracking.
  2. Step 2: Analyze options

    Only It records the test run results to Cypress Dashboard correctly describes this behavior; others misunderstand or negate recording.
  3. Final Answer:

    It records the test run results to Cypress Dashboard -> Option B
  4. Quick Check:

    '--record' flag uploads results = A [OK]
Quick Trick: '--record' uploads results to Cypress Dashboard [OK]
Common Mistakes:
  • Thinking it disables recording
  • Confusing local video recording with dashboard upload
  • Assuming it runs tests without recording

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Cypress Quizzes