mirror of https://github.com/garrytan/gstack.git
The test-file count scanned the whole working tree with `find`, so it
counted untracked build output as test files. On a Rails repo using
`bundle install --path vendor/bundle` it over-reported by 37x:
find . -name '*.test.*' ... | grep -v node_modules | wc -l -> 623
git ls-files | grep -E '(\.test\.|...)' | wc -l -> 17
The 623 breaks down as 433 from vendor/bundle gem suites, 189 from
.claude/worktrees/ agent copies, 4 from nested node_modules, and 17
real files under test/.
`grep -v node_modules` only filters output lines, so find still walks
every ignored tree, and it does nothing for vendor/, worktrees, tmp/,
target/, .venv/, Pods/ and so on. No exclusion list can stay complete,
so count tracked files instead: untracked build output is excluded by
definition, .gitignore is respected for free, and it avoids the
full-tree walk. Both skills already require a git repo and run
`git log origin/<default>` in the same step.
Fixes #2307
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| adversarial.md | ||
| adversarial.md.tmpl | ||
| changelog.md | ||
| changelog.md.tmpl | ||
| greptile.md | ||
| greptile.md.tmpl | ||
| manifest.json | ||
| plan-completion.md | ||
| plan-completion.md.tmpl | ||
| pr-body.md | ||
| pr-body.md.tmpl | ||
| review-army.md | ||
| review-army.md.tmpl | ||
| test-coverage.md | ||
| test-coverage.md.tmpl | ||
| tests.md | ||
| tests.md.tmpl | ||