MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / TestSkillInstallAll

Function TestSkillInstallAll

internal/cli/cmd_skill_test.go:227–244  ·  view source on GitHub ↗

--all installs everything from the store.

(t *testing.T)

Source from the content-addressed store, hash-verified

225
226// --all installs everything from the store.
227func TestSkillInstallAll(t *testing.T) {
228 home := isolatedHome(t)
229 seedEntity(t, entities.KindSkill, "s1", "body1", "")
230 seedEntity(t, entities.KindSkill, "s2", "body2", "")
231 stdout, _, code := execute(t, "skill", "install", "--all", "--app", "claude")
232 if code != 0 {
233 t.Fatalf("install --all exit = %d", code)
234 }
235 if !strings.Contains(stdout, "Installed 2 skill(s)") {
236 t.Fatalf("missing install count:\n%s", stdout)
237 }
238 // Verify files on disk.
239 for _, name := range []string{"s1", "s2"} {
240 if _, err := os.Stat(filepath.Join(home, ".claude", "skills", name, "SKILL.md")); err != nil {
241 t.Fatalf("SKILL.md missing for %s: %v", name, err)
242 }
243 }
244}
245
246// --all with --force overwrites existing.
247func TestSkillInstallAllForce(t *testing.T) {

Callers

nothing calls this directly

Calls 3

isolatedHomeFunction · 0.85
seedEntityFunction · 0.85
executeFunction · 0.85

Tested by

no test coverage detected