gotestyourself / gotestyourself/gotestsum
TestMain failure on re-runs seem to halt retries
- Dominant language
- Go
- Stars
- 2.7k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Description
It seems that if a rerun of a test fails in `TestMain`, then it is not subsequently retried. For example if `--rerun-fails=2` and `TestMain` fails on the first retry, the second retry does not happen.
This happened in a private repository, so it's difficult to share the exact details. If the bug isn't obvious, I can attempt to provide a trivial repro.
A sanitized version of our logs would be something like, TestOne, TestTwo and TestThree fail in mkypkg. On retry TestOne fails in `TestMain` and TestTwo,TestThree pass.
```
FAIL Package mypkg (30.217s) # TestOne fails in TestMain
PASS mypkg/TestTwo (re-run 1) (8.46s)
PASS mypkg/TestThree (re-run 1) (8.46s)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.