Skip to content

mytechnotalent/CircuitPython_Unittest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

CircuitPython Unittest

A repo that provides the MP-Lib unittest.py to CircuitPython to allow makers to take full advantage of Python's unittest within CircuitPython.

Installation

git clone https://github.com/mytechnotalent/CircuitPython_Unittest.git

Copy Files To CircuitPython Device

unittest.py
code.py
test_code.py
tests/test_code.py

unittest.py could copied to the lib folder instead of the root.

24/7 Community Of Support

If you have any questions regarding this app or implementing your own version of this app please visit us in the CircuitPython Discord channel HERE and visit the help-with-circuitpython room.

Run Tests in REPL

import unittest
unittest.main('test_code')
unittest.main('tests.test_code')

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache License, Version 2.0