Skip to content

Commit 5010803

Browse files
josealekhineclaude
andcommitted
chore: add coverage reporting to make test
Update `make test` to show per-package coverage summary by default. This makes coverage visible during normal development without requiring a separate command. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e56d3d2 commit 5010803

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.context/TASKS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
- [x] `ctx session save` creates session file
5151
- [x] `ctx agent` returns context packet
5252
- [x] Set unit test coverage target (70% for internal/cli, internal/context)
53-
- [ ] Add coverage reporting to `make test`
53+
- [x] Add coverage reporting to `make test`
5454
- [ ] Add smoke test to CI/Makefile: build binary, run basic commands
5555
- [ ] Verify built binary executes subcommands (not silently falling through to root help)
5656

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ all: build
1515
build:
1616
CGO_ENABLED=0 go build -o $(OUTPUT) ./cmd/ctx
1717

18-
## test: Run tests
18+
## test: Run tests with coverage summary
1919
test:
20-
CGO_ENABLED=0 CTX_SKIP_PATH_CHECK=1 go test ./...
20+
@CGO_ENABLED=0 CTX_SKIP_PATH_CHECK=1 go test -cover ./...
2121

2222
## test-v: Run tests with verbose output
2323
test-v:

0 commit comments

Comments
 (0)