Commit e58a9b9
fix: stop tests leaking skill dirs into cmd/, drop the gitignore band-aid (#45)
Two cmd/* tests installed skills into harnesses with no SkillDir, so the
install path resolved relative to the test CWD and littered the repo with
`cmd/praxis*/` skill dirs. The leak was masked by a `/cmd/praxis*/`
.gitignore rule rather than fixed.
- TestInstallSkill_Success: didn't isolate HOME or stub the catalog fetch,
so after the (seamed) meta-skill install the real catalog flow ran
against the developer's live profile and installed real catalog skills
into the SkillDir-less harnesses. Isolate HOME + clear PRAXIS_PROFILE so
the catalog step soft-skips (matches sibling tests).
- TestRunPostAuthSetupAgentFetchFailureLeavesExistingInPlace: set AgentDir
but no SkillDir, so runPostAuthSetup's meta-skill install (praxis,
praxis-memory, praxis-onboarding) landed in CWD. Point SkillDir under the
test's tmp HOME.
- .gitignore: drop the now-obsolete /cmd/praxis/ and /cmd/praxis-*/ rules
(and the explanatory comment) — with the leaks fixed, a future leak will
correctly surface in `git status` instead of being silently hidden.
Verified: `go test -race ./...` is green and leaves no cmd/praxis* dirs.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 8b86db2 commit e58a9b9
3 files changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 10 | | |
19 | 11 | | |
20 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
299 | 303 | | |
300 | 304 | | |
301 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
| |||
0 commit comments