883 B
883 B
Issue 258: Smart Test Detection
Original Issue
https://github.com/host-uk/core/issues/258
Summary
Make core test smart - detect changed files and run only relevant tests.
Commands
core test # Run tests for changed files only
core test --all # Run all tests
core test --filter UserTest # Run specific test
core test --coverage # With coverage report
Acceptance Criteria
- Detect changed
.gofiles viagit diff --name-only - Map source files to test files (
foo.go→foo_test.go) - Run only relevant tests via
go test - Support
--allflag to run all tests - Support
--filterflag for pattern matching - Support
--coverageflag for coverage reports
Technical Context
- Go CLI using Cobra
- Commands in
cmd/core/cmd/ - Follow existing patterns in
dev_*.gofiles