--- Group-by variations ---
(t *testing.T)
| 325 | // --- Group-by variations --- |
| 326 | |
| 327 | func TestReportCommand_GroupByPriority(t *testing.T) { |
| 328 | tmpDir := createReportTestFiles(t) |
| 329 | resetReportFlags() |
| 330 | reportGroupBy = "priority" |
| 331 | |
| 332 | output := captureReportOutput(t, tmpDir) |
| 333 | |
| 334 | if !strings.Contains(output, "## Tasks by Priority") { |
| 335 | t.Error("Expected '## Tasks by Priority' section") |
| 336 | } |
| 337 | if !strings.Contains(output, "### critical") { |
| 338 | t.Error("Expected '### critical' group header") |
| 339 | } |
| 340 | if !strings.Contains(output, "### high") { |
| 341 | t.Error("Expected '### high' group header") |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | func TestReportCommand_GroupByEffort(t *testing.T) { |
| 346 | tmpDir := createReportTestFiles(t) |
nothing calls this directly
no test coverage detected