Yes, there is, but it's not free. Our ant script builds everything, launches our app server, mds simulator, and the device simulator, and the test app executes automatically running all the unit tests. Then the test app talks back to our ant task to report unit tests results, everything gets shut down, and the script continues.
The unit tests are based on J2MEUnit, but we've modified it to work more like JUnit, so tests are wired together automatically during the build, you just define your test*() methods.
Originally Posted by Goldi
Is there a way to automatically run unit tests on a device / simulator?
The goal is to have a script that would run nightly, build the CODs (and load them), and then run a set of sanity tests. If any of the tests fail - a mail should be sent (or any other notification message should be activated).
I looked at BUnit, but it only runs on the device itself, and requires manual activation and a person that would look at the screen and see the result.