Cypress · Senior · Question 10 of 76
Why split very long spec files?
- 1One long spec sets a floor for parallel run time
- 2Long specs make screenshots larger on disk
- 3Cypress can't run spec files longer than 500 lines
Show the answer
Correct answer: One long spec sets a floor for parallel run time
Explanation
If one spec takes 12 minutes, no amount of parallelism finishes the run sooner. Smaller specs balance better.