Testing Guide
Channel compatibility: See shared/channel-compat.mdThis project currently focuses on deterministic unit tests for protocol and parsing logic, plus workspace-level compilation checks.
What Is Covered
motor_core:- Windows PCAN channel/bitrate parsing and validation
CoreControllerintegration tests with fakeCanBus:- duplicate device-id rejection
- frame routing
- enable/disable fan-out
- shutdown lifecycle behavior
motor_vendor_damiao:- protocol encode/decode primitives
- model matching/suggestion logic
motor_vendor_robstride:- extended CAN ID build/parse
- ping/parameter encoding and validation
motor_cli:- input parsing helpers and RobStride parameter value parsing
Run All Tests
Recommended Local Quality Gate
Hardware-in-the-loop (manual)
Automated tests avoid real CAN hardware. For hardware validation, run:- vendor scan
- enable/disable
- control mode command
- feedback/state readback
README.md (Linux) and Windows experimental section (can0@1000000) for repeatable checks.
Reliability helper scripts:
tools/reliability/README.mdtools/reliability/reliability_runner.py
Next Step Improvements
- Expand long-run HIL matrix (different adapters and bus loads)
- Add periodic cross-platform compare-scan jobs with explicit tolerance policy