← Back to Explore
Dev/Test with Retry
Development workflow with automatic retries and failure recovery.
featured
Rundown
# Dev/Test Loop
A workflow for implementing features and ensuring tests pass with recovery.
## 1. Run Tests
- PASS: GOTO 3
- FAIL: CONTINUE
Run the test suite to verify the implementation.
```bash
rd echo "Running tests..." --result pass
```
## 2. Recovery and Fix
- PASS: RETRY 2 GOTO 1
- FAIL: STOP "Unable to fix tests after multiple attempts."
Attempt to fix the environment or the code.
```bash
rd echo "Attempting automated fix..." --result pass
```
## 3. Commit Changes
- PASS: COMPLETE "Feature implemented and verified."
Commit the changes to the repository.
```bash
rd echo "git commit -m 'feat: implement new logic'" --result pass
``` Run
Tests pass on the first attempt
Initializing...
Initializing...
Step—/—
ExpectedCOMPLETE