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

when running spec when integrationFolder default is overridden, Cypress looks in wrong directory path. #117

Closed
jennifer-shehane opened this issue Mar 31, 2016 · 2 comments
Assignees
Labels
type: unexpected behavior User expected result, but got another
Milestone

Comments

@jennifer-shehane
Copy link
Member

When I've set integrationFolder in cypress.json to be the following:

{
  "integrationFolder": "foo"
}

And my folder structure is this:

+ projectRoot
  + foo
     fake.js

When I run fake.js within the Cypress webapp, there is an error displayed in the runner:

Sorry, there's something wrong with this file:

.... / projectRoot / foo / integration / fake.js

Cypress is trying to run this test in a nested integration folder that I didn't specify in the config integrationFolder path.

@brian-mann
Copy link
Member

This isn't a bug. The problem is the file.

The only thing I see that needs updating is that the path name has 'integration' as a segment, which is wrong. That's just cosmetic but will be fixed in 0.15.1

@jennifer-shehane jennifer-shehane added type: unexpected behavior User expected result, but got another and removed type: bug labels Apr 1, 2016
@jennifer-shehane
Copy link
Member Author

The UI error now properly prints the integration test file's path.

Fixed in 0.15.1.

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Dec 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: unexpected behavior User expected result, but got another
Projects
None yet
Development

No branches or pull requests

2 participants