(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestRunRerunPassRemovesPriorFailure(t *testing.T) { |
| 87 | t.Parallel() |
| 88 | |
| 89 | jsonFile := writeEvents(t, |
| 90 | testEvent{Action: "output", Package: "example.com/pkg", Test: "TestFlake", Output: "first run failed\n"}, |
| 91 | testEvent{Action: "fail", Package: "example.com/pkg", Test: "TestFlake", Elapsed: 0.10}, |
| 92 | testEvent{Action: "output", Package: "example.com/pkg", Test: "TestFlake", Output: "retry passed\n"}, |
| 93 | testEvent{Action: "pass", Package: "example.com/pkg", Test: "TestFlake", Elapsed: 0.05}, |
| 94 | ) |
| 95 | |
| 96 | markdown := runMarkdown(t, jsonFile, config{MaxOutputBytes: 8192}) |
| 97 | require.Empty(t, markdown) |
| 98 | } |
| 99 | |
| 100 | func TestRunStripsANSIOutput(t *testing.T) { |
| 101 | t.Parallel() |
nothing calls this directly
no test coverage detected