-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from RaspberryPiFoundation/dev
v0.1.1
- Loading branch information
Showing
8 changed files
with
453 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Tests | ||
===== | ||
|
||
The tests are design to be run on a Raspberry Pi Pico. | ||
|
||
Setup | ||
----- | ||
|
||
1. Install the `picozero <https://pypi.org/project/picozero/>`_ package. | ||
|
||
2. Install the `micropython-unittest <https://pypi.org/project/micropython-unittest/>`_ package. | ||
|
||
3. Copy the ``test_picozero.py`` to the pico. | ||
|
||
4. Run the ``test_picozero.py`` file. | ||
|
||
Error messsages | ||
--------------- | ||
|
||
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 |
Oops, something went wrong.