bahmutov / bahmutov/cypress-split
Error when running the empty file on a list of specs ("Can't run because no spec files were found")
- Dominant language
- JavaScript
- Stars
- 285
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
Hello! I have noticed an issue with running the empty file on a list of specs.
Steps to reproduce:
- start from https://github.com/scebotari66/cypress-split-example (just bumped plugin version to latest)
- run `SPLIT=6 SPLIT_INDEX=5 SPEC="cypress/e2e/spec-a.cy.js" npx cypress run --spec "cypress/e2e/spec-a.cy.js"`
Here is the error I am getting:

Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue in the linked cypress-split-example repository with the provided SPLIT, SPLIT_INDEX, SPEC, and Cypress command. Trace how cypress-split handles a split that contains no spec files; done means the empty-file case no longer produces the reported “Can't run because no spec files were found” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cypress, javascript
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100