Hi scruss,
Same here, intermittent failures on my AHT20 and SPI errors talking to the ESP32. I have way too many try/except clauses scattered around for my liking, and now I need to reorganize my code so that I can catch problems at the right level in the call stack to retry the operation properly
Search found 3 matches
- Sun May 15, 2022 5:39 pm
- Forum: General Discussion and Questions
- Topic: RFC: How to Test MicroPython
- Replies: 8
- Views: 3114
- Sun May 15, 2022 1:40 am
- Forum: General Discussion and Questions
- Topic: RFC: How to Test MicroPython
- Replies: 8
- Views: 3114
Re: RFC: How to Test MicroPython
Hi Chris, I definitely agree with the approach of breaking logic out into functions that can be tested independently of anything MP or 'machine' specific. Makes the code more understandable and maintainable as well. Early on in my development using MP I ran into some compatibility issues with code t...
- Fri May 13, 2022 11:06 pm
- Forum: General Discussion and Questions
- Topic: RFC: How to Test MicroPython
- Replies: 8
- Views: 3114
RFC: How to Test MicroPython
Hi All, I decided to explore firmware, Micropython and the Pico MCU several months ago. Coming from a pure software background I wanted to have automated test coverage for as much as possible, so I started working with UnitTest. I further wanted: 1) to run tests in MP, not in CPython to minimize div...