(t *testing.T)
| 181 | } |
| 182 | |
| 183 | func TestRunPackageLevelFailure(t *testing.T) { |
| 184 | t.Parallel() |
| 185 | |
| 186 | jsonFile := writeEvents(t, |
| 187 | testEvent{Action: "output", Package: "example.com/pkg", Output: "setup failed\n"}, |
| 188 | testEvent{Action: "fail", Package: "example.com/pkg", Elapsed: 0.30}, |
| 189 | ) |
| 190 | |
| 191 | markdown := runMarkdown(t, jsonFile, config{MaxOutputBytes: 8192}) |
| 192 | require.Contains(t, markdown, "(package)") |
| 193 | require.Contains(t, markdown, "setup failed") |
| 194 | } |
| 195 | |
| 196 | func runMarkdown(t *testing.T, jsonFile string, cfg config) string { |
| 197 | t.Helper() |
nothing calls this directly
no test coverage detected