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 not working on Cypress 3.0.2 in Windows

See original GitHub issue

Current behavior:

On Windows 10 cypress detects all files under integrationFolder as spec files irrespective of ignoreTestFiles

Desired behavior:

Ignore files that match the glob set in ignoreTestFiles.

Note: tested on Mac and works correctly

Steps to reproduce:

Add any files to integration folder eg html files and intended test files ending in spec.js (eg ExampleTest.spec.js)

Set ignoreTestFiles in cypress.json to /**/*.html

Execute cypress run and see that the intended ignored files (in this case html files) are include as spec files.

I have also tested with ignoreTestFiles set to /**/!(*.spec.js) and has the same behaviour.

Versions

OS: Microsoft Windows [Version 10.0.17134.165] Cypress: 3.0.2 Chrome: 67.0.3396.99 (Official Build) (64-bit)

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
kohlikohlcommented, Sep 24, 2018

@raelgc Great find of testFiles!

@jennifer-shehane Please, please, please document this. It is super useful when the project structure does not align with the suggested structure by cypress.

For example, we run a mono-repo which has multiple npm packages inside it, with E2E tests in multiple packages. The test runs are coordinated across all packages though. So being able to filter by the files that I actually want to test was super helpful.

1reaction
raelgccommented, Sep 18, 2018

Thanks @heardy for mention testFiles: it was exactly what I was looking for after fight with the non-working ignoreTestFiles.

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 >
Changelog - Cypress Documentation
Fixed an issue with Angular Component Testing where urls within SASS/SCSS files were not being correctly resolved which could result in incomplete styling....
Read more >
cypress: Versions - Openbase
Fixed an issue with cy.session() such that re-running tests in open mode will now correctly recreate a ... Windows 32-bit is no longer...
Read more >
Cypress - Percy Docs
Integrating Percy with your Cypress tests. ... If you're not ready to integrate Percy, check out our 2-minute Cypress testing tutorial and example...
Read more >
Skip test conditionally with Cypress - Filip Hric
Four sessions packed with great tips and on a live online workshop where you'll learn by writing code, solving testing problems and getting...
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