Update AGENTS.md: use -short flag for all local tests
- Changed all test commands to 'go test -short ./...' - Clarified that full tests run in CI - Updated: Code Standards, Before Committing, Landing the Plane, Building and Testing, Release Process - Agents should only run short tests; CI runs full suite
This commit is contained in:
16
AGENTS.md
16
AGENTS.md
@@ -520,7 +520,7 @@ bd show bd-41 --json # Verify merged content
|
||||
|
||||
- **Go version**: 1.21+
|
||||
- **Linting**: `golangci-lint run ./...` (baseline warnings documented in [docs/LINTING.md](docs/LINTING.md))
|
||||
- **Testing**: All new features need tests (`go test ./...`)
|
||||
- **Testing**: All new features need tests (`go test -short ./...` for local, full tests run in CI)
|
||||
- **Documentation**: Update relevant .md files
|
||||
|
||||
### File Organization
|
||||
@@ -538,7 +538,7 @@ beads/
|
||||
|
||||
### Before Committing
|
||||
|
||||
1. **Run tests**: `go test ./...`
|
||||
1. **Run tests**: `go test -short ./...` (full tests run in CI)
|
||||
2. **Run linter**: `golangci-lint run ./...` (ignore baseline warnings)
|
||||
3. **Update docs**: If you changed behavior, update README.md or other docs
|
||||
4. **Commit**: Issues auto-sync to `.beads/issues.jsonl` and import after pull
|
||||
@@ -626,8 +626,8 @@ bd sync --merge
|
||||
# 1. File remaining work
|
||||
bd create "Add integration tests for sync" -t task -p 2 --json
|
||||
|
||||
# 2. Run quality gates
|
||||
go test ./...
|
||||
# 2. Run quality gates (only if code changes were made)
|
||||
go test -short ./...
|
||||
golangci-lint run ./...
|
||||
|
||||
# 3. Close finished issues
|
||||
@@ -976,10 +976,10 @@ gh issue view 201
|
||||
# Build
|
||||
go build -o bd ./cmd/bd
|
||||
|
||||
# Test
|
||||
go test ./...
|
||||
# Test (short - for local development)
|
||||
go test -short ./...
|
||||
|
||||
# Test with coverage
|
||||
# Test with coverage (full tests - for CI)
|
||||
go test -coverprofile=coverage.out ./...
|
||||
go tool cover -html=coverage.out
|
||||
|
||||
@@ -1036,7 +1036,7 @@ See `scripts/README.md` for more details.
|
||||
|
||||
1. Bump version with `./scripts/bump-version.sh <version> --commit`
|
||||
2. Update CHANGELOG.md with release notes
|
||||
3. Run full test suite: `go test ./...`
|
||||
3. Run tests locally: `go test -short ./...` (CI will run full suite)
|
||||
4. Push version bump: `git push origin main`
|
||||
5. Tag release: `git tag v<version>`
|
||||
6. Push tag: `git push origin v<version>`
|
||||
|
||||
Reference in New Issue
Block a user