-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress does not find any component testing specs when folder matching glob can not be accessed #24109
Comments
The message "We searched for specs matching this glob pattern:" is not entirely true because the debug output shows Cypress also searched If Cypress would only search for the glob I entered in the CLI, it would not encounter the secret directory. |
Hey team! Please add your planning poker estimate with Zenhub @astone123 @lmiller1990 @marktnoonan @mike-plummer @rockindahizzy @warrensplayer @ZachJW34 |
I took a quick look at this one last sprint - there's a very easy fix by adding The only workaround I could come up with without digging too far into |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
Cypress scans directories to gather specs using a glob pattern, if one of those directories or a subdirectory gives a
EACCES
error, the scan is cancelled and no specs are found.I started with this command:
Relevant debug output:
This results in this vague error:
ll
command output:The file exists and should be readable by Cypress.
I also tried moving the file around in the project, including
cypress/component
but Cypress keeps missing the spec files.This also seems to impact the component search function in the GUI.
Desired behavior
When access to a subdirectory is denied, that directory should be skipped and the search should continue normally.
Test code to reproduce
Can be reproduced with any repository containing a directory that is not readable.
npm init vue@latest
, no to all questionscd vue-project/
npm install
npm install cypress -D
mkdir -p secret/directory
touch secret/directory/.gitkeep
chmod -r secret/directory
npx cypress open
WelcomeItem.cy.js
insrc/components
:npx cypress run --component -s src/components/WelcomeItem.cy.js
Cypress Version
10.9.0
Node version
16.14.2
Operating System
Ubuntu 20.04.5 LTS (through WSL)
Debug Logs
Other
This only impacts component testing, e2e testing seem unaffected.
The text was updated successfully, but these errors were encountered: