google / wireit

Wireit upgrades your npm/pnpm/yarn scripts to make them smarter and more efficient.
Apache License 2.0
5.39k stars 95 forks source link

Multiple iterations and flake detection #72

Open aomarks opened 2 years ago

aomarks commented 2 years ago

It could be useful to sometimes run a script multiple times. For example, to detect a flaky test, maybe something like this:

npm test -- --detect-failure-rate --iterations=10

This would run the script 10 times, and then report the % of times it failed at the end.

aomarks commented 2 years ago

Closing this as out of scope for now. Feels like maybe something a totally standalone tool could do.