--- Command-level tests ---
(t *testing.T)
| 379 | // --- Command-level tests --- |
| 380 | |
| 381 | func TestRunValidate_ValidTasks(t *testing.T) { |
| 382 | tmpDir := createValidateTestFiles(t) |
| 383 | resetValidateFlags() |
| 384 | |
| 385 | output, err := captureValidateOutput(t, []string{tmpDir}) |
| 386 | if err != nil { |
| 387 | t.Fatalf("runValidate failed: %v", err) |
| 388 | } |
| 389 | |
| 390 | if !strings.Contains(output, "2 task(s) are valid") { |
| 391 | t.Errorf("expected success message, got:\n%s", output) |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | func TestRunValidate_JSONFormat(t *testing.T) { |
| 396 | tmpDir := createValidateTestFiles(t) |
nothing calls this directly
no test coverage detected