Pytest integration
-
Hi,
any way to get pytest for micropython?
-
Thank you for the interesting informations, I want exaclty to be able to develop without having to load the software on the boards to test it.
I'll look at your implementation, thank you for sharing!
Best regards
-
This post is deleted!
-
Dear @Summer,
pytest
itself will probably never work on MicroPython. You might also want to follow the discussion at [1].However, we have been working on building a test harness for our Terkin Datalogger based on
pytest
just a few days ago, see [2]. The main job was to apply appropriate mocking to the MicroPython ESP32 HALs and to make different modules from the MicroPython standard library compatible with CPython.So, the test harness will not run on the device itself, but within a regular CPython. Let me know what you are aiming at and if I can support you in any way. In fact, I was planning to put all generic parts into a different package so it can be reused by others.
With kind regards,
Andreas.[1] https://github.com/pfalcon/pycopy-lib/issues/49#issuecomment-603875987
[2] https://github.com/hiveeyes/terkin-datalogger/tree/master/test