gotestyourself / gotestyourself/gotestsum

TestMain failure on re-runs seem to halt retries

Open
#481 2 comments 0 reactions 0 assignees View on GitHub
question
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.