Open Aali13265 opened 6 years ago
I am having performance problems as well:
Running: menu.accelerators.spec.ts (5 of 10)
. Nothing happens or is output to the console, but after a few minutes (2-5), it goes on and test is executedI'll try to move my tests into a single file to see if it improves the performance.
Not sure if this belongs here or in
@cypress/webpack-preprocessor
;Since each Typescript file is compiled separately, memory usage and compile time grows quickly when using many .spec.ts files. Moving all tests into one file (or importing all spec files into one) makes a huge difference.
In our project, total run time of
cypress run
is 60 seconds with one .spec.ts file, 90 seconds when the same tests are split into 8 files. Memory usage is over 1 GB with 8 different files, with one file it stays at 350 MB.Moving all tests into one file is obviously not ideal, importing multiple files into one is slightly better but still not great. Perhaps this could be done behind the scenes by the preprocessor?