-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
Tests are way too slow when this preprocessor is used #336
Comments
That's not what we see. Could you please make a reproduction so we could take a look at what's going on? |
@lgandecki Sure, I will setup a repo with the issue today but in the meanwhile you can refer to below plugins setup which I have been using in order to run tests under
|
@lgandecki Did you get a chance to look at this? I even tried https://github.com/TheBrainFamily/cypress-cucumber-webpack-typescript-example and found the similar results. One other observation: |
I'm also finding similar results with our use of cypress-cucumber-preprocessor. |
its absurdly slow for us too. do webpack builds happen for each test? |
any updates on this? it is indeed very slow when using this plugin |
Hey guys, a reproduction and more info (operating system, cypress version, is it performance of run/open, etc) would be great as this is not what we (and a significant amount of happy users) see. |
@lgandecki As mentioned in my earlier comment, have found similar results with reference webpack example. Slowness is observed during
|
Thanks. changed package.json: "cypress": "^4.8.0",
"cypress-cucumber-preprocessor": "^2.5.0", changed google.com to github.com in clicked WebPack.feature - clicked All.features - both worked in an instant. Took a few seconds. Can you give me some more details? Can you try with the newest versions (for some reasons you had 2.0.1 and 3.8.3). When you saw "slow" how slow is it? 10 x as in the original comment? |
Hi @lgandecki I will retest this with updated version and share their results. Thanks |
Hi! Are there any news on this? We recently migrated from stock Cypress Mocha to cucumber using the preprocessor and the Suite of 10 somewhat long tests we have currently is taking double the time it used to with Mocha. We're using Cypress 7.5.0 and cypress-cucumber-preprocessor 4.1.2. Things we already tried...
Thanks!! |
I did some investigating myself and unfortunately found no performance overhead associated with using the preprocessor (note: using latest version, see #689). I took one of the tests that are auto-generated when opening Cypress for the first time, duplicated and re-wrote it using steps. This can be found at badeball/cypress-cucumber-performance-comparison. Then I ran everything ten times. Below are the results.
As you can see, there was little to no difference. Unless anyone can show me otherwise, I'm considering this a non-issue. That's not so say that you're not experiencing any issues, but I can't investigate and fix something that I can't observe myself. |
Tried a simple button test
4s
40s
button.spec.ts
button.feature
button.steps.ts
The text was updated successfully, but these errors were encountered: