I like to unit test my code. So when i started with Arduino i searched for a unit test framework.
I am not familiar with C and C++ so i didn't understood the examples i found.
Than i found this great haikuVM project. Where i can use my Java knowledge for Arduino.
With version 1.3.2 a Java wrapper for some Arduino C functions was added. e.g.: Arduino.java
I have build the bootstrapEmulator project. If you add this project to your classpath you can mock away the C part of the wrapper implementation. And do unit testing in a JavaVM without uploading the code to the Arduino hardware.
I like to unit test my code. So when i started with Arduino i searched for a unit test framework.
I am not familiar with C and C++ so i didn't understood the examples i found.
Than i found this great haikuVM project. Where i can use my Java knowledge for Arduino.
With version 1.3.2 a Java wrapper for some Arduino C functions was added. e.g.: Arduino.java
I have build the bootstrapEmulator project. If you add this project to your classpath you can mock away the C part of the wrapper implementation. And do unit testing in a JavaVM without uploading the code to the Arduino hardware.
example code:
Maybe this is also useful for somebody else.
Last edit: rproell 2015-06-21