micropython / micropython-esp32-ulp

ESP32 ULP Co-Processor toolchain implemented in MicroPython
MIT License
117 stars 24 forks source link

best practice: unit tests on micropython? #6

Open ThomasWaldmann opened 6 years ago

ThomasWaldmann commented 6 years ago

Usually I use pytest to run tests, but I guess that does not work on MicroPython?

So what is a sane, working test runner?

Currently I do testing using the UNIX port of MicroPython.

mattytrentini commented 6 years ago

There is micropython-lib.unittest. Haven't used it but it looks simple and straightforward...

ThomasWaldmann commented 6 years ago

Ah, good idea. I don't really like unittest, but guess it's better than nothing.

mattytrentini commented 6 years ago

And if we need to improve it we may as well contribute changes back upstream... :)