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.

🚀 Feature Proposal

In order to ensure test quality in a repository, this feature will make sure we provide a way of stress running a test.

Stress running means to run in parallel a test, and report all the results separately, so that they can be later analized. A successful test is the one that is all green, a flaky one it’s a mix of them, and a broken test will fail in all runs.

It is important to return results separately, as people might want to later compute the flakiness percentage and decide on it (life’s not black or white! 😉).

Motivation

Ensuring that a test passes correctly before releasing it to the world helps getting higher signal when running tests, and less annoyance for other users who might be running the test later.

Example

jest --stressRuns=24 to perform 24 runs of the same test in parallel.

Pitch

Being able to run the same test at the same time requires heavy integration with the runner and the reporter. Currently you can do that by (ab)using the MPR and reporting over and over the same configuration, but that’s just a hack 😄.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:16
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
JacobMGEvanscommented, Aug 1, 2020

This still a thing? I was looking for ways to do this with the CLI and found this issue 🤣

2reactions
aaronabramovcommented, Jun 8, 2018

we should be able to specify parallelism as well (jest --stressRuns=24 -w 1) i’m currently working with a lot of e2e jest tests that spawn buck and buck takes over the entire system and loads all threads. if we run 24 bucks in parallel i’m pretty sure it’ll stall the machine 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why You Should Run When Stressed | Runner's World
Research on exercise and stress is firmly in favor of the first camp. It found that staying active during work crunches, family emergencies, ......
Read more >
The Truth About Running and Stress - Run Wild Retreats
Running is an incredibly effective and immediate stress-reducing activity. It clears the mind, stimulates the release of “happy” hormones, raises energy ...
Read more >
Exercise and stress: Get moving to manage stress - Mayo Clinic
Exercise in almost any form can act as a stress reliever. Being active can boost your feel-good endorphins and distract you from daily...
Read more >
Why Running is the Best for Stress Relief - A Foodie Stays Fit
Hello! Running is a great stress reliever. With any exercise, good hormones are produced, and the hormone cortisol decreases. It is also called ......
Read more >
Is stress slowing down your running? - RunningPhysio
As athletes we all hope our body will respond well to the training we do but some evidence suggesting stress may even reduce...
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