https://github.com/catdad/repeatspawn
🔁 execute a cli command repeatedly until it fails
https://github.com/catdad/repeatspawn
cli linux macos node npm repeat shell spawn windows
Last synced: 2 months ago
JSON representation
🔁 execute a cli command repeatedly until it fails
- Host: GitHub
- URL: https://github.com/catdad/repeatspawn
- Owner: catdad
- Created: 2019-02-24T21:13:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-24T21:55:09.000Z (over 6 years ago)
- Last Synced: 2025-03-18T04:53:55.986Z (3 months ago)
- Topics: cli, linux, macos, node, npm, repeat, shell, spawn, windows
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# repeatspawn
Run a CLI command repeatedly until it fails. If it never fails, it will continue running indefinitely. If it does fail, it will exit with the same error code as the command being run. I wrote this to use when debugging flaky tests, but I am sure you can use your imagination for where you can apply this.
_This is a CLI tool and cannot be used a `require` module._
```bash
npx repeatspawn mocha my-flaky-test.js
```## Usage
```bash
repeatspawn: repeat a command until it errorsusage:
repeatspawn command with any argscommand will repeat until it errors, and will exit with the
same exit code as the command being repeated
```