--all installs everything from the store.
(t *testing.T)
| 225 | |
| 226 | // --all installs everything from the store. |
| 227 | func 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. |
| 247 | func TestSkillInstallAllForce(t *testing.T) { |
nothing calls this directly
no test coverage detected