-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
92 lines (73 loc) · 1.99 KB
/
Makefile
File metadata and controls
92 lines (73 loc) · 1.99 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
87
88
89
90
91
92
# ionChannel Makefile
# Convenience targets for development
.PHONY: help build test lint fmt clean ci check coverage docs
# Default target
help:
@echo "ionChannel Development Commands"
@echo ""
@echo " make build - Build all crates"
@echo " make test - Run all tests"
@echo " make lint - Run clippy linter"
@echo " make fmt - Format code"
@echo " make check - Run fmt + lint + test"
@echo " make ci - Full CI check (build + check + docs)"
@echo " make coverage - Run tests with coverage"
@echo " make docs - Build documentation"
@echo " make clean - Clean build artifacts"
@echo ""
@echo "Quick commands:"
@echo " make t - Alias for test"
@echo " make c - Alias for check"
# Build
build:
cargo build --workspace --all-targets
# Test
test t:
cargo test --workspace
# Lint (warnings only, not errors)
lint:
cargo clippy --workspace --all-targets
# Format
fmt:
cargo fmt --all
# Format check (no modify)
fmt-check:
cargo fmt --all -- --check
# Quick check (fmt + lint + test)
check c: fmt-check lint test
# Full CI simulation
ci: build check docs
@echo ""
@echo "✅ CI passed!"
# Coverage
coverage:
cargo tarpaulin --workspace --out html --skip-clean
@echo ""
@echo "Coverage report: tarpaulin-report.html"
# Documentation
docs:
cargo doc --workspace --no-deps --open
# Clean
clean:
cargo clean
# Run specific test suites
test-unit:
cargo test --workspace --lib
test-e2e:
cargo test --package ion-test-substrate --test e2e_demonstration
test-chaos:
cargo test --package ion-test-substrate --test chaos_tests
test-security:
cargo test --package ion-test-substrate --test security_tests
# Platform check
platform-check:
cargo run --package ion-compositor --bin capability-check
# Count tests
test-count:
@echo "Test counts:"
@cargo test --workspace 2>&1 | grep "test result" | awk '{sum += $$3} END {print "Total: " sum " tests"}'
# Show crate structure
tree:
@echo "ionChannel Crate Structure:"
@echo ""
@ls -la crates/