Skip to content
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

file name contains character ”+“ not run #5909

Open
mingyixu opened this issue Dec 7, 2019 · 3 comments
Open

file name contains character ”+“ not run #5909

mingyixu opened this issue Dec 7, 2019 · 3 comments

Comments

@mingyixu
Copy link

@mingyixu mingyixu commented Dec 7, 2019

the file cy_web+_20191207220608.js is exsite, but run cypress,

Cannot find module web _20191207220608.js, this character ”+“  instead of " ", so not find the file.

Current behavior:

  │ Cypress:    3.7.0                                                                              │
  │ Browser:    Electron 73 (headless)                                                             │
  │ Specs:      1 found (web+_20191207220608/web+_20191207220608.js)                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  web+_20191207220608/web+_20191207220608.js                           (1 of 1)

Oops...we found an error preparing this test file:

  /home/admin/cypress/web _20191207220608/web _20191207220608.js

The error was:

Error: Cannot find module '/home/admin/cypress/web _20191207220608/web _20191207220608.js' from '/home/admin/cypress'

This occurred while Cypress was compiling and bundling your test code. This is usually caused by:

- A missing file or dependency
- A syntax error in the file or one of its dependencies

Fix the error in your code and re-run your tests.
@jennifer-shehane

This comment has been minimized.

Copy link
Member

@jennifer-shehane jennifer-shehane commented Dec 24, 2019

Yes, confirmed. Specfiles with + character do not run in Cypress.

The error seems to print the filename with the + character replaced with a character.

My file was at cypress/integration/foo+bar.js

Screen Shot 2019-12-24 at 2 35 24 PM

@emchoi7

This comment has been minimized.

Copy link

@emchoi7 emchoi7 commented Jan 8, 2020

Could I take a look at this, if nobody else is already?

@jennifer-shehane

This comment has been minimized.

Copy link
Member

@jennifer-shehane jennifer-shehane commented Jan 8, 2020

@emchoi7 Sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.