MCPcopy Index your code
hub / github.com/coder/coder / TestRunRerunPassRemovesPriorFailure

Function TestRunRerunPassRemovesPriorFailure

scripts/gotestsummary/main_test.go:86–98  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

84}
85
86func 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
100func TestRunStripsANSIOutput(t *testing.T) {
101 t.Parallel()

Callers

nothing calls this directly

Calls 3

writeEventsFunction · 0.85
runMarkdownFunction · 0.85
EmptyMethod · 0.45

Tested by

no test coverage detected