-
-
Notifications
You must be signed in to change notification settings - Fork 270
Expand file tree
/
Copy pathMakefile
More file actions
86 lines (72 loc) · 2.52 KB
/
Makefile
File metadata and controls
86 lines (72 loc) · 2.52 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
.PHONY: test test-smoke test-unit test-integration test-e2e test-live test-coverage test-all test-plugin-name clean-tests help
# Default: smoke + unit (fast feedback)
test: test-smoke test-unit
# Validate plugin name (critical - prevents command prefix breakage)
test-plugin-name:
@./tests/validate-plugin-name.sh
# Run all tests
test-all: test-smoke test-unit test-integration test-e2e
# Smoke tests (pre-commit, <30s)
test-smoke: test-plugin-name
@echo "Running smoke tests..."
@./tests/run-all.sh smoke
# Unit tests (1-2min)
test-unit:
@echo "Running unit tests..."
@./tests/run-all.sh unit
# Integration tests (5-10min)
test-integration:
@echo "Running integration tests..."
@./tests/run-all.sh integration
# E2E tests (15-30min)
test-e2e:
@echo "Running E2E tests..."
@./tests/run-all.sh e2e
# Live tests - real Claude Code sessions (2-5min per test, uses API)
test-live:
@echo "Running live tests (real Claude Code sessions)..."
@echo "WARNING: This makes real API calls"
@./tests/run-all.sh live
# Performance tests
test-performance:
@echo "Running performance tests..."
@./tests/run-all.sh performance
# Regression tests
test-regression:
@echo "Running regression tests..."
@./tests/run-all.sh regression
# Coverage report
test-coverage:
@echo "Generating coverage report..."
@./tests/helpers/generate-coverage-report.sh
# Verbose mode for debugging
test-verbose:
@VERBOSE=true ./tests/run-all.sh all
# Clean test artifacts
clean-tests:
@echo "Cleaning test artifacts..."
@rm -rf tests/tmp/
@rm -f test-results*.xml
@rm -f coverage*.xml
@rm -f /tmp/test_*.log
@echo "Test artifacts cleaned"
# Help
help:
@echo "Claude Octopus Test Suite"
@echo ""
@echo "Usage:"
@echo " make test - Run smoke + unit tests (default)"
@echo " make test-all - Run all test categories"
@echo " make test-smoke - Run smoke tests (<30s)"
@echo " make test-unit - Run unit tests (1-2min)"
@echo " make test-integration - Run integration tests (5-10min)"
@echo " make test-e2e - Run E2E tests (15-30min)"
@echo " make test-live - Run live tests (real Claude sessions)"
@echo " make test-performance - Run performance tests"
@echo " make test-regression - Run regression tests"
@echo " make test-coverage - Generate coverage report"
@echo " make test-verbose - Run all tests with verbose output"
@echo " make clean-tests - Clean test artifacts"
@echo " make help - Show this help message"
@echo ""
@echo "For more details, see tests/README.md"