(t *testing.T)
| 116 | } |
| 117 | |
| 118 | func TestProjectInit_NoSpecFlag(t *testing.T) { |
| 119 | tmpDir := t.TempDir() |
| 120 | resetProjectInitFlags(tmpDir) |
| 121 | projectInitNoSpec = true |
| 122 | |
| 123 | err := runProjectInit(projectInitCmd, []string{}) |
| 124 | if err != nil { |
| 125 | t.Fatalf("unexpected error: %v", err) |
| 126 | } |
| 127 | |
| 128 | // Should create CLAUDE.md |
| 129 | claudePath := filepath.Join(tmpDir, "CLAUDE.md") |
| 130 | if _, err := os.Stat(claudePath); os.IsNotExist(err) { |
| 131 | t.Error("CLAUDE.md should have been created") |
| 132 | } |
| 133 | |
| 134 | // Should NOT create TASKMD_SPEC.md |
| 135 | specPath := filepath.Join(tmpDir, specFilename) |
| 136 | if _, err := os.Stat(specPath); err == nil { |
| 137 | t.Error("TASKMD_SPEC.md should not have been created with --no-spec") |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | func TestProjectInit_NoAgentFlag(t *testing.T) { |
| 142 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected