MCPcopy Create free account
hub / github.com/driangle/taskmd / TestReportCommand_MarkdownDefault

Function TestReportCommand_MarkdownDefault

apps/cli/internal/cli/report_test.go:148–169  ·  view source on GitHub ↗

--- Markdown tests ---

(t *testing.T)

Source from the content-addressed store, hash-verified

146// --- Markdown tests ---
147
148func TestReportCommand_MarkdownDefault(t *testing.T) {
149 tmpDir := createReportTestFiles(t)
150 resetReportFlags()
151
152 output := captureReportOutput(t, tmpDir)
153
154 if !strings.Contains(output, "# Project Report") {
155 t.Error("Expected '# Project Report' heading")
156 }
157 if !strings.Contains(output, "## Summary") {
158 t.Error("Expected '## Summary' section")
159 }
160 if !strings.Contains(output, "## Tasks by Status") {
161 t.Error("Expected '## Tasks by Status' section")
162 }
163 if !strings.Contains(output, "## Critical Path") {
164 t.Error("Expected '## Critical Path' section")
165 }
166 if !strings.Contains(output, "## Blocked Tasks") {
167 t.Error("Expected '## Blocked Tasks' section")
168 }
169}
170
171func TestReportCommand_MarkdownSummaryMetrics(t *testing.T) {
172 tmpDir := createReportTestFiles(t)

Callers

nothing calls this directly

Calls 4

createReportTestFilesFunction · 0.85
resetReportFlagsFunction · 0.85
captureReportOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected