question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ignoreTestFiles is ignored when passed from cli

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ValerieThomacommented, May 9, 2018

Thank you for taking the time to provide this excellent example. I was able to reproduce what you described. Passing ignoreTestFiles as a CLI argument does not work as the documentation suggests: cypress-io/cypress-documentation#535 We believe this is a bug.

0reactions
cypress-bot[bot]commented, Jun 27, 2019

Released in 3.3.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cypress ignoreTestFiles is not ignoring tests - Stack Overflow
I used Globster to verify the minimatch, and it says its correct. But when I run my tests, these files are not getting...
Read more >
Configurations in Cypress and How to Disable Default ...
This configuration specifies a list of test files that ignore as a test file. For example, if you have any file under Integration...
Read more >
Skip test conditionally with Cypress - Filip Hric
For ignoring your test files, use ignoreTestFiles . You can also pass arrays these attributes. These can contain either test name or ...
Read more >
Configuration - Cypress Documentation
A String or Array of glob patterns used to ignore test files that would otherwise be shown in your list of tests. Please...
Read more >
Linters | golangci-lint
Name Description Presets Since asasalint ⚙️ check for pass any as any in variadic func(...any) bugs 1.47.0 bidichk ⚙️ Checks for dangerous unicode character sequences...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found