You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add proper test coverage measurement (90%+ target) #1
Current CLI tests spawn subprocesses which aren't instrumented for coverage tracking. We cannot accurately measure code coverage to ensure we meet our 90%+ target.
Current State
47 integration tests (29 API + 18 CLI)
All tests passing on CI
Coverage measurement only works for directly imported code, not subprocess CLI invocations
Proposed Solution
Unit tests for core modules: Add unit tests that directly import and test:
src/lib/config.ts
src/lib/api.ts
src/commands/auth.ts
src/commands/admin.ts
src/commands/dataset.ts
Coverage tooling: Configure Bun coverage to track all source files:
[test]
coverage = truecoverageThreshold = { line = 90, function = 90 }
CI integration: Add coverage reporting to GitHub Actions workflow
Acceptance Criteria
Unit tests for all core modules
Coverage report generated on each CI run
90%+ line and function coverage achieved
Coverage badge in README
Notes
Integration tests (current) verify end-to-end behavior; unit tests (proposed) will enable coverage tracking.
Closing as superseded. The project moved to entry-point testing (.rules/testing.md, "Test the entry point, not the piece") and never adopted a coverage percentage gate; the subprocess-spawned CLI tests would not be instrumented by bun --coverage anyway. There are 288 test files today versus 47 when this was filed. Reopen if a coverage gate becomes a release requirement.
Activity
fix: surface git status errors in isWorkingTreeDirty
docs: hint at --resume after --update for partial prior downloads
test: cover isWorkingTreeDirty / resolveUpstreamRef / readLocalDatase…
Add --resume, --update, and BIDS entity filters to dataset download (#…
Address PR #442 review findings
Phase 2: Worker auth layer for GitHub App tokens (#437) (#442)
review(#644): address three criticals from multi-agent review
Fix import README stub and enrichment self-loop (#642, #643) (#644)
neuromechanist commentedon Sep 3, 2026
Closing as superseded. The project moved to entry-point testing (.rules/testing.md, "Test the entry point, not the piece") and never adopted a coverage percentage gate; the subprocess-spawned CLI tests would not be instrumented by bun --coverage anyway. There are 288 test files today versus 47 when this was filed. Reopen if a coverage gate becomes a release requirement.
docs: record the live GitHub check in ADR 0111
fix: round 1 review fixes for the upstream freshness epic (#1984)