(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func TestRunSubtestFailureCapturesSlashName(t *testing.T) { |
| 74 | t.Parallel() |
| 75 | |
| 76 | jsonFile := writeEvents(t, |
| 77 | testEvent{Action: "output", Package: "example.com/pkg", Test: "TestParent/subcase", Output: "subtest failed\n"}, |
| 78 | testEvent{Action: "fail", Package: "example.com/pkg", Test: "TestParent/subcase", Elapsed: 0.20}, |
| 79 | ) |
| 80 | |
| 81 | markdown := runMarkdown(t, jsonFile, config{MaxOutputBytes: 8192}) |
| 82 | require.Contains(t, markdown, "TestParent/subcase") |
| 83 | require.Contains(t, markdown, "subtest failed") |
| 84 | } |
| 85 | |
| 86 | func TestRunRerunPassRemovesPriorFailure(t *testing.T) { |
| 87 | t.Parallel() |
nothing calls this directly
no test coverage detected