Unit testing boilerplate for PIC32
I was spending too much time finding stupid bugs and manually testing my code, and specially code written by other people which I had to study first. That's why I decided to spend some time setting up a TDD environment for a PIC32-based project using Ceedling (Rake, Unity, Cmock).
I have uploaded the project to GitHub with a basic library for turning on an LED (more precisely a Neopixel). The library was not meant to be efficient whatsoever, the objective of this project is just to play with the unit testing framework so anyone can take it and integrate it for their own projects. So far I have created tests for the example code mocking calls to the SYS and PLIB libraries included in Harmony. It took quite some time to configure everything right, but it's finally ready to be used.
If anyone wants to start using TDD in their project (you definetily should), take a look at the project here: https://github.com/crespum/Ceedling-PIC32
. Any contribution is welcome!
- Run tests on the computer (because it's faster) compiling them with GCC. Right now tests run on the simulator given by Microchip.
- Generate the final release with Ceedling.