3 ms·
Yeah, you've got it in the edit. Using Cypress you are going to have specs and specs will have tests. You can parallelize Cypress per spec. Meaning that if yo
by punkpeye 4y ago
Yeah, you've got it in the edit.
Using Cypress you are going to have specs and specs will have tests.
You can parallelize Cypress per spec. Meaning that if you had 50 specs and 50 VMs, then your entire test suite will take at most what your longest spec takes.
Most companies are not going to have 50 VMs ready to run tests. However, even if you did, you still have the problem that your tests will run for as long as it takes to run the longest spec, which can be a lot.
I've seen companies try to diminish the latter issue by splitting specs into multiple files. However, that will get you only so far.
So what I do is... I read all your specs, extract individual tests, and spin up VM for each test.
If all your individual tests complete in under a minute, then you will wait at most 1 minute.
However, if there are individual tests that take longer, than yes – you will wait for the longest test to complete.