Running JMUnit Test cases | Telit Cinterion IoT Developer Community
September 28, 2015 - 6:18am, 2775 views
Hi,
1. Is there any means to run test cases (JMUnit or any other) on the Gemalto EHSx boards?
2. Is there any way to run the java code on an emulator and test its working directly on the PC without loading the code on the board everytime.
Regards,
SRN7
Hi SRN7,
I once searched for unit testing and this is what I found: http://j2meunit.sourceforge.net/ . It's based on JUnit, but it's for java micro edition.
I haven't tryed it out, but if you will please post your results.
Regards,
Jure
Hi Jure,
Thanks for the link. I tried to run JMUnit on the Gemalto board but the preverifier was giving me an error as I was unable to export the jmunit jar file as part of the final deployed package. I will try this.
Thanks,
SRN7
Hello,
There's no emulator for the Gemalto board. There's on device debugging possible that you can use under Eclipse or Netbeans.
I haven't tried to use JMUnit but there's probably no dedicated version. You would need to try to adopt it.
The other way (maybe simpler) could be to test part of the code on PC with the standard JUnit. You would need to prepare mocks for Gemalto specific classes.
Regards,
Bartłomiej