question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Speed up a preparation phase of the following test

See original GitHub issue

Hi Gleb! Yesterday I’ve already experimented with the v4 version and noticed that tests run slow enough.

For example: git@github.com:daedalius/cypress-react-test.git Here are 10 copies of the same test. I run them in a row:

npm run test:ci

On the timeline it takes:

  • ~12 seconds for the Cypress start (it is ok. But for the cold start after Windows restarting it takes ~34 seconds)
  • ~3 seconds for the first test preparation 🤔
  • less than a second to run it (it is ok too)

and so on:

  • ~3 seconds for next test preparation 🤔
  • less than a second to run it

Total times: Windows:

1:08 for the cold start after Windows restart 0:42 for the next run

mac os:

0:38 for the cold start after a system reboot 0:34 for the next run

The output says that clean test time is 3 seconds (around ~0.3 per test). Is there any way to speed up the test preparation phase?

You know, I am in love with Cypress and this repo in particular. But it’s hard to debate with colleagues who argue that Jest does 500 tests in 20 seconds.

This is maybe important:

  • I’ve noticed in the Windows Task Manager that Antimalware Service Executable activates during the test run (especially for the cold one after restart).
  • Specs: Windows: Ryzen 2600x, NVME, Windows 10 build 1809 Mac: MacBook Pro 2019, i7 6-cores 2.6 - 4.5 GHz, SSD

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:25
  • Comments:38 (22 by maintainers)

github_iconTop GitHub Comments

12reactions
bahmutovcommented, Feb 17, 2021

Things are going great and soon it will be faster than lightning

7reactions
bahmutovcommented, Oct 14, 2020

@AndrewSouthpaw appreciate the timings - we are working on speeding up the bundling step. I have created prototype system for externalizing React and ReactDOM dependencies - and that really speeds things up, since every spec only has to bundle its own “small” dependencies. The Cypress team has created a different webpack preprocessor where all 3rd party dependencies are externalized. Unfortunately they got sidetracked by moving this repo, and doing some other unrelated work. Please keep an eye on this issue for updates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test 2 Flashcards | Quizlet
Athletes are tested for which of the following reasons? A) determine strengths, weaknesses, limitations. B) to monitor improvement
Read more >
Preparatory Period
This excerpt from the Essentials of Strength Training and Conditioning outlines what training typically looks like in the preparatory period, or off-season.
Read more >
What is Test Data? Test Data Preparation Techniques with ...
Learn what is test data and how to prepare test data for testing using ... data preparation is a time-consuming phase of software...
Read more >
STEP TEST PROCEDURES - TotalWellness
Participants step up and down, on and off an aerobics- type step for THREE minutes to increase ... immediately following the step test...
Read more >
Types Of Fitness Tests - for Speed, Strength, Power, Flexibility ...
Following a warm-up, set the treadmill at 8 miles/hr and a 20% gradient. · The athlete must start standing either side of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found