Notifications
Clear all

Unit Testing for Prusa-Firmware code base?  

  RSS
Martin Stoufer
(@martin-stoufer)
Estimable Member
Unit Testing for Prusa-Firmware code base?

I've been getting more and more excited about the opportunity to start contributing in some manner to improve the functionality of the Firmware code base. To that end, I thought what better to learn the code base by looking at/running existing unit tests. I'm not seeing any, so either they are kept in a private repo or there aren't any. Does anyone know?

I've got a Sloeber v4.2 install running locally and I've patched in the entire code base. After fumbling around with the setup, it appears I'm able to build against the RAMBo board description and actually get a .hex file generated. I dare not try and install that thing until I feel more confident my setup is actually building things correctly. There are a few extra files created by the IDE as part of the initial build process that I need to investigate more on.

There are also some setup instructions out there to integrate ArduinoUnit into the project to build unit tests that get run on the physical board. I'm not there yet, but I fear that running tests to failure on a real device may result in permanent damage to the equipment.

Thoughts, Suggestions?

Opublikowany : 19/04/2018 6:31 am
Share: