unit testing



  • Hi,

    I was wondering if anyone has attempted unit testing of their python scripts on the hardware (WiPy)? Is it possible? I imagine running unit tests using a micropython unit test lib(if such a lib even exists) through the REPL from Atom/Vs code.



  • @inverseeffect

    Unit testing on hardware is a little more difficult that pure software because timings can be variable and you need to have real hardware connected. It certainly is possible to create small units of code and have them run and check their results, it's no different to running your full code, just split into smaller chunks and with more checks.



Pycom on Twitter