Skip to content

ignoreTestFiles is ignored when passed from cli #1696

@Sergeon

Description

@Sergeon

Current behavior:

When invoking cypress with config ignoreTestFiles=*blob from the command line, specs that match the blob aren't ignored. For instance, this npm command:

"cypress:run": "cypress run --config ignoreTestFiles=*.demo.js"

Will make a spec.demo.js to run, when it should be ignored.

Desired behavior:

Files that match the ignoreTestFiles parameter should be ignored.

Steps to reproduce:

I set up a test-tiny-repo clone with a demo of the issue. The branch is called ignore-test-files-cli-issue. You can find the repo here.

The readme has all the instructions.

Versions:

Mac Os: 10.13.4
Cypress: 2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions