-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
68 lines (53 loc) · 2.02 KB
/
Copy pathjustfile
File metadata and controls
68 lines (53 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# AgentMesh Development Tasks
# Run with: just <target>
# Install just: https://github.com/casey/just
# Default recipe - show available commands
default:
@just --list
# Run all tests with race detection (default)
test:
go test ./pkg/... ./internal/... ./integration_test/... -race -count=1
# Run tests without race detection (faster, for quick iterations)
test-fast:
go test ./pkg/... ./internal/... ./integration_test/...
# Run tests with race detection (explicit alias for CI)
test-race:
go test ./pkg/... ./internal/... ./integration_test/... -race -count=1
# Run linter (only core library - examples excluded)
lint:
golangci-lint run ./pkg/... ./internal/... --config .golangci.yml --timeout=2m
# Generate test coverage report
cover:
go test ./... -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
@echo "Coverage report generated: coverage.html"
# Run all quality checks (CI-ready)
check: test lint cover
@echo "All quality checks completed"
# Clean generated files
clean:
rm -f coverage.out coverage.html
# Install development dependencies
install-deps:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
# Quick development cycle - test and lint with race detector
dev: test lint
@echo "Development checks completed"
# Fast development cycle - skip race detector for speed
dev-fast: test-fast lint
@echo "Fast development checks completed"
# Run tests with verbose output
test-verbose:
go test ./... -v
# Run specific package tests (usage: just test-pkg agent)
test-pkg package:
go test ./{{package}}/... -v
# Show test coverage by package
cover-summary:
go test ./... -coverprofile=coverage.out
go tool cover -func=coverage.out | grep -E "(total|\.go:)"
# Serve documentation site locally with live reload
docs-serve:
cd docs && bundle config set --local path 'vendor/bundle'
cd docs && bundle install
cd docs && bundle exec jekyll serve --livereload --host 0.0.0.0 --port 4000 --config _config.yml,_config.dev.yml