bahmutov / bahmutov/cypress-split

Error when running the empty file on a list of specs ("Can't run because no spec files were found")

Open
#392 0 comments 0 reactions 0 assignees View on GitHub
bug
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:

![Image](https://github.com/user-attachments/assets/340adfb1-3fb8-4c27-9b82-a762e3a8066c)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.