`ignoreTestFiles` is not working on Cypress 3.0.2 in Windows
See original GitHub issueCurrent 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:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
Thanks @heardy for mention
testFiles
: it was exactly what I was looking for after fight with the non-workingignoreTestFiles
.