The tests are design to be run on a Raspberry Pi Pico.
- Install the picozero package.
- Install the micropython-unittest package.
- Copy the
test_picozero.pyto the pico. - Run the
test_picozero.pyfile.
If a test fails it is helpful to be able to see verbose error messages. To see error messages you need to modify the lib/unittest.py file on the pico.
Locate the following code in the run_class function:
# Uncomment to investigate failure in detail #raise
Uncomment raise:
# Uncomment to investigate failure in detail raise