(t *testing.T)
| 346 | } |
| 347 | |
| 348 | func TestProjectInit_AllAgentFlags(t *testing.T) { |
| 349 | tmpDir := t.TempDir() |
| 350 | resetProjectInitFlags(tmpDir) |
| 351 | projectInitClaude = true |
| 352 | projectInitGemini = true |
| 353 | projectInitCodex = true |
| 354 | |
| 355 | err := runProjectInit(projectInitCmd, []string{}) |
| 356 | if err != nil { |
| 357 | t.Fatalf("unexpected error: %v", err) |
| 358 | } |
| 359 | |
| 360 | expected := []string{"CLAUDE.md", "GEMINI.md", "AGENTS.md", specFilename} |
| 361 | for _, name := range expected { |
| 362 | path := filepath.Join(tmpDir, name) |
| 363 | if _, err := os.Stat(path); os.IsNotExist(err) { |
| 364 | t.Errorf("%s should have been created", name) |
| 365 | } |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | func TestProjectInit_PartialSkipStillCreatesOthers(t *testing.T) { |
| 370 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected