trentrand / cypress-utils

⚙ Easily parallelize and stress-test your Cypress tests
MIT License
25 stars 6 forks source link

Failing to run the example #10

Closed SamWyldKW closed 3 years ago

SamWyldKW commented 3 years ago

Hi, I've been trying to use this tool without much success.

I've cloned and installed cypress-utils and cloned cypress-example-kitchensink.

When trying to follow the example gif exactly I'm getting this error:

> cypress-utils stress-test location navigation

No Cypress spec files were found. You may have specified invalid file identifiers.

The following file identifiers were provided: "location", "navigation"

Your configuration specifies that test files are contained within the following directory:
`cypress/integration`

See help for the `--integrationFolder` command-line option if this is incorrect.

Any idea what I may be doing wrong?

trentrand commented 3 years ago

I'd guess it's because test files are located at directory cypress/integration/examples in the cypress-example-kitchensink repo.

Can you try passing --integrationFolder ./cypress/integration/examples?

Their cypress.json configuration file does not specify a value for integrationFolder, so we're seeing the Cypress default value being used here.

SamWyldKW commented 3 years ago

11 I've created this PR that fixes my use case. Without having any effect on the current functionality from what I understand. I found the issue was that I was missing testFiles and they were not being loaded because of this :D

trentrand commented 3 years ago

Hey Sam, thanks for the contribution! I left a few comments on PR #11.

SamWyldKW commented 3 years ago

All of my issues were fixed with the merge of #11 thanks @trentrand