Hi.
I'm reasonably new with micropython. So far it has been a pleasant experience and I've got my first devices deployed after only a short time.
I'm used to working more or less test-driven and I'm very fond of pytest. So naturally I've been searching for test and mocking frameworks for micropython. Are there any? Ideally I want mock the externals modules and hardware I need and run the tests on the Unix port of Micropython. Running the tests on the MCU itself is not really a priority for me atm.
Any tips?
Per.
Testing and mocking
Re: Testing and mocking
This seems to be a surprisingly narrow topic. For me this is surprising, because the opportunity to test if for me one of the big driver for micropython.
Anyways, if anyone else should stumble on the thread my best advice would be to start out with @ToddFBass ESP32 Machine Emulator - https://github.com/tflander/esp32-machine-emulator
It seems to cover most of my needs, at least.
Anyways, if anyone else should stumble on the thread my best advice would be to start out with @ToddFBass ESP32 Machine Emulator - https://github.com/tflander/esp32-machine-emulator
It seems to cover most of my needs, at least.
Re: Testing and mocking
Some previous discussion: viewtopic.php?f=2&t=7376