micropython-esp32-ulp icon indicating copy to clipboard operation
micropython-esp32-ulp copied to clipboard

best practice: unit tests on micropython?

Open ThomasWaldmann opened this issue 7 years ago • 3 comments

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.

ThomasWaldmann avatar Mar 11 '18 18:03 ThomasWaldmann

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

mattytrentini avatar Mar 20 '18 00:03 mattytrentini

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

ThomasWaldmann avatar Mar 20 '18 15:03 ThomasWaldmann

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

mattytrentini avatar Mar 20 '18 22:03 mattytrentini