Pytest integration
-
Hi,
any way to get pytest for micropython? -
Dear @Summer,
pytestitself 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
pytestjust 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 -
This post is deleted! -
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login