Testing and mocking
Posted: Thu Mar 26, 2020 7:52 am
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.
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.