Skip to content

cypress run --spec only runs the first spec if multiple specs are passed #22645

Open
@fazo96

Description

@fazo96

Current behavior

cypress run --spec file_a.tsx file_b.tsx and also cypress run --spec file_a.tsx,file_b.tsx both end up running only the specs in file_a.tsx

Desired behavior

cypress run --spec file_a.tsx file_b.tsx and also cypress run --spec file_a.tsx,file_b.tsx both result in test_a.tsx and test_b.tsx both being executed by cypress

Test code to reproduce

Any test suite with at least two files can be used to reproduce. Manually specify at least 2 files using --spec but only the first one in the list will be executed by cypress

Cypress Version

9.5.4, 10.3.0

Other

cypress run --spec file_a.tsx file_b.tsx this used to work at some point in our CI pipeline, but it eventually broke silently. We didn't notice because the pipeline was still succeeding, it was just running a small sample of the tests.

I tried upgrading from 9.5.4 to 10.3.0 but the issue persists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E2EIssue related to end-to-end testingTriagedIssue has been routed to backlog. This is not a commitment to have it prioritized by the team.clitype: enhancementRequested enhancement of existing featuretype: unexpected behaviorUser expected result, but got anothertype: user experienceImprovements needed for UX

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions