
arduinounit
Arduino Unit is an on-chip unit testing framework for Arduino libraries.
Downloads, source code and issues have now moved to github (https://github.com/mmurdoch/arduinounit)
Features
- Simple test definition and execution
- Boolean assertions
- Integer equality assertions
- Default reporting of results to the serial port
- Ability to customize result reporting (e.g. where serial port is being used by the code under test)
- Support for multiple (optionally named) test suites
Documentation
- Getting Started
- Anatomy of an ArduinoUnit Sketch
- Writing Custom Assertions
- Writing a Custom Reporter
- ArduinoUnit Library Reference
- Example Sketches
Upgrading to Version 1.5
If you upgrade from an earlier version to 1.5 you will need to add a call to Serial.begin
in the setup
function. Previously this was being handled in the default serial reporter but baud rates other than 9600 caused garbage output to be written (see issue 5).
Related libraries
- arduino-unit-test-helper-library (https://code.google.com/p/arduino-unit-test-helper-library/)
Contribute
- Suggest and vote for ArduinoUnit enhancements
- Log a defect
- Help develop Arduino Unit
Project Information
- License: MIT License
- 25 stars
- svn-based source control
Labels:
arduino
unit-testing