41 lines
1.2 KiB
TOML
Raw Normal View History

2025-10-07 10:59:52 +01:00
# Cargo configuration for orchestrator testing and benchmarking
[env]
# Test environment variables
RUST_TEST_THREADS = "1"
RUST_BACKTRACE = { value = "1", condition = { env-not-set = ["CI"] } }
RUST_LOG = { value = "debug", condition = { env-not-set = ["CI"] } }
[alias]
# Test aliases for convenience
test-all = "test --all-features"
test-fs = "test --lib --bin orchestrator"
test-surrealdb = "test --features surrealdb"
test-integration = "test --test storage_integration"
test-migration = "test --test migration_tests"
test-factory = "test --test factory_tests"
test-unit = "test --lib"
# Benchmark aliases
bench-all = "bench --all-features"
bench-storage = "bench --bench storage_benchmarks"
bench-migration = "bench --bench migration_benchmarks"
bench-fs = "bench --bench storage_benchmarks -- filesystem"
bench-surrealdb = "bench --features surrealdb --bench storage_benchmarks -- surrealdb"
# Coverage and documentation
test-coverage = "tarpaulin --all-features --out html"
doc-test = "test --doc --all-features"
[target.'cfg(test)']
rustflags = [
"-C", "instrument-coverage"
]
[build]
# Enable additional lints for testing builds
rustflags = [
"-W", "unused-crate-dependencies",
"-W", "unused-extern-crates",
"-W", "rust-2021-compatibility"
]