BUG Community

Welcome! Log In

Forums Applications Unit testing applications

Subscribe to Unit testing applications  3 posts, 3 voices

Log in to reply to this topic
Dec 3, 2008 1:07am
Img_missing_medium sgargan 8 posts

Is there any support for unit testing or acceptance testing applications? Has anyone used J2me unit or javolution on the device? What are the best strategies for TDD either on or off the device?

Thanks in advance.


Dec 4, 2008 4:03pm
Medium Bug Labs team kgilmer 215 posts

Hi Stephen,

We use a junit bundle to do some testing but we don’t have anything exposed to users. Any Java testing framework that’s compatible with Java 1.4 should work on the BUG. IRT TDD, I’ll defer to others on recommendations.


Dec 4, 2008 5:29pm
Medium Bug Labs team bballantine 56 posts


JUnit comes baked into Eclipse. It facilitates unit testing of regular java stuff and also Eclipse plug-in stuff. I have not tested a BUG application using JUnit on the real or virtual BUG, but my guess is that you would need to use JUnit 3.x since the BUG runs PhoneME, which is essentially java 1.4.

When I test Eclipse plug-ins, I create a testing plug-in that corresponds to the plug-in I wish to test. So if I have an Eclipse plug-in called MyPlugin, I create a testing plug-in called MyPlugin.tests that depends on the plug-in I’m te