Add HealthMonitor service for tracking system health status with comprehensive state transition logic and thread-safe operations. Includes 16 unit tests covering all functionality including concurrent access scenarios. Add optional Modbus hardware integration tests with 7 test cases for real device testing. Tests are marked as ignored and can be run with Ref: T034, T039, T040 (specs/001-modbus-relay-control/tasks.org)
52 lines
690 B
Makefile
52 lines
690 B
Makefile
default: run
|
|
|
|
run:
|
|
cargo run
|
|
|
|
run-release:
|
|
cargo run --release
|
|
|
|
format:
|
|
cargo fmt --all
|
|
|
|
format-check:
|
|
cargo fmt --check --all
|
|
|
|
audit:
|
|
cargo deny check
|
|
|
|
build:
|
|
cargo build
|
|
|
|
build-release:
|
|
cargo build --release
|
|
|
|
lint:
|
|
cargo clippy --all-targets
|
|
|
|
release-build:
|
|
cargo build --release
|
|
|
|
release-run:
|
|
cargo run --release
|
|
|
|
test:
|
|
cargo test --all --all-targets
|
|
|
|
test-hardware:
|
|
cargo test --all --all-targets -- --ignored
|
|
|
|
coverage:
|
|
mkdir -p coverage
|
|
cargo tarpaulin --config backend/.tarpaulin.local.toml
|
|
|
|
coverage-ci:
|
|
mkdir -p coverage
|
|
cargo tarpaulin --config backend/.tarpaulin.ci.toml
|
|
|
|
check-all: format-check lint coverage audit
|
|
|
|
## Local Variables:
|
|
## mode: makefile
|
|
## End:
|