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

Function TestRunSubtestFailureCapturesSlashName

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

Source from the content-addressed store, hash-verified

71}
72
73func 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
86func TestRunRerunPassRemovesPriorFailure(t *testing.T) {
87 t.Parallel()

Callers

nothing calls this directly

Calls 3

writeEventsFunction · 0.85
runMarkdownFunction · 0.85
ContainsMethod · 0.45

Tested by

no test coverage detected