Speed Up Component Testing #20045
Replies: 1 comment
-
In doing some research, I found if I took the Basically, the initial load up time was a little quicker, but the time between runs dropped down to nearly sub second compiles, so the Red/Green/Refactor goes super fast. If Cypress could support this elegantly somehow, it would REALLY help. Until then, in the Hack of the Week category, I present to you my PowerShell version of making this easy:
So for you bash gurus out there, feel free to figure out how to do this on there :) The line Also, don't miss that we name our spec files as |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
We have over 400 component tests. When the component test runner fires up, it rebuilds the site AND the tests.
This is getting rather slow. The site rebuilds in under 2 seconds, but the tests take much longer.
They will take about 50 seconds on a cold run, and take 11 seconds on a save and rebuild.
Once they're running they're of course blindingly fast, but the Red/Green/Refactor with 10 seconds of wait in between each run is rough.
Is there anyway to speed these up? Is there a possibility of doing code splitting on the specs so it doesn't have to rebuild all the specs on a single change?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions