Skip to content

Add unit and hardware test system#95

Open
bradamiller wants to merge 1 commit into
mainfrom
test_system
Open

Add unit and hardware test system#95
bradamiller wants to merge 1 commit into
mainfrom
test_system

Conversation

@bradamiller
Copy link
Copy Markdown
Contributor

Summary

  • Adds pytest-based unit tests with mocks for MicroPython modules (machine, neopixel, rp2) so the XRPLib code can be exercised off-device
  • Adds on-device hardware test suite under tests/hardware/ covering board, drivetrain, encoders, IMU, motors, rangefinder, reflectance, servo, and timing
  • Adds scripts/ci_hardware_test.py runner and .github/workflows/hardware-test.yml CI workflow
  • Includes TEST_PLAN.md and CODE_REVIEW.md describing the testing approach

Test plan

  • Run unit tests locally: pytest tests/unit/
  • Run hardware tests on an XRP board: tests/hardware/run_all_hw_tests.py
  • Verify CI workflow triggers and completes on a draft PR

Includes pytest-based unit tests with mocks for MicroPython modules,
on-device hardware tests, CI workflow, and supporting docs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant