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

Function TestProjectInit_AllAgentFlags

apps/cli/internal/cli/project_init_test.go:348–367  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

346}
347
348func 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
369func TestProjectInit_PartialSkipStillCreatesOthers(t *testing.T) {
370 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 2

resetProjectInitFlagsFunction · 0.85
runProjectInitFunction · 0.85

Tested by

no test coverage detected