diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/tests/install-lang.bats | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/tests/install-lang.bats b/scripts/tests/install-lang.bats index a523186..a9f3bfe 100644 --- a/scripts/tests/install-lang.bats +++ b/scripts/tests/install-lang.bats @@ -68,3 +68,15 @@ teardown() { grep -qxF ".claude/" "$PROJECT/.gitignore" grep -qxF "coverage.json" "$PROJECT/.gitignore" } + +@test "install-lang go: coverage-only slice lands without a CLAUDE.md" { + run bash "$INSTALL_LANG" go "$PROJECT" + + [ "$status" -eq 0 ] + [ -f "$PROJECT/.claude/scripts/coverage-summary.go" ] + [ -f "$PROJECT/coverage-makefile.txt" ] + grep -qxF ".claude/" "$PROJECT/.gitignore" + grep -qxF "cover.out" "$PROJECT/.gitignore" + # The slice ships no rules of its own, so there is no Go CLAUDE.md to seed. + [ ! -f "$PROJECT/CLAUDE.md" ] +} |
