MoMEUnit Ant Integration - Overview

MoMEUnit ant integration consists of following tasks:

MoMEUnit

It is a fully featured task intended to run tests from the MoMEUnit testing framework. It runs tests from prebuilt J2ME application or builds test application on behalf of the user. It resembles very much <junit> task.

It creates automatically the list of test cases to run form classes of specified J2ME application or classes and/or java source files specified via tests descriptions. Test cases included are classes and/or java source files that implement momeunit.framework.Test interface and/or match specified pattern. There is no need to specify tests explicitly.

Results of tests run can be formatted using predefined or custom formatters (like in <junit>). There are two predefined formatters "brief" and "xml". These formatters fully resemble their <junit> analogs. As xml formatter produces report files of the same format as it's junit analog, it is possible to use <junitreport> task to further process report files.

This task does not rely on antenna project. Users can use predefined or custom preverifiers and/or emulators (classes that run emulator or preverify tools respectively).

TestList

This task sets given property to the list of test cases to run. List of test cases is created automatically based on specified J2ME application or classes and/or java source files specified via test descriptions. Test cases included are classes and/or java source files that implement momeunit.framework.Test interface and/or match specified pattern. Java source files will be compiled to test that they implement Test interface. The value of set property is intended to be used for building and/or running test application using other tasks (e.g. antenna project).

Note: MoMEUnit tasks do not depend on antenna project. Users don't need it to run these tasks.