October 1 2003
leJOSUnit is a simple test unit framework for leJOS, a Java Operating System for LEGO (TM) Mindstorms. It is a port of the famous JUnit framework, a testing framework for Java, developed by Kent Beck and Erich Gamma. leJOSUnit has been adopted to the specific requirements (few resources, less footprint) of the leJOS environment.
Download the latest version from leJOSUnit here. For prerequisites see docs/ImplementationDetails.html.
leJOSUnit has been originally developed by Jochen Hiller (email@example.com) and will be hosted at SourceForge (http://sourceforge.net/projects/lejosunit).
||Scripts and ant-based build file, to build the leJOSUnit project from the scratch.|
||Scripts to compile and run main programs, e.g. a simple example.|
||Additional documentation, implementation details, images, etc.|
||The generated JavaDocs (docs/api).|
||The licenses of the projects used.|
||The library containing only the core framework. This should be the default library to be included, due to the very restricted resources of leJOS.|
||The library containing the core framework, all examples and tests.|
||The Java source code for leJOSUnit.|
Below are the installation steps for installing leJOSUnit:
CLASSPATHof your leJOS project.
main(String)method starting the
To get started with unit testing make familiar yourself using the JUnit framework. See JUnit for more information.
leJOSUnit provides some simple examples as a demonstration how to use
the framework based on the leJOS virtual machine running on LEGO Mindstorms.
See the examples within the package
This example can the be compiled, linked and downloaded to the RCX,
using the script
Make sure, that
JAVA_HOME are set
to the corresponding directories.
The TestRunner provided by leJOSUnit running on RCX provides this functionality:
Figure 1: The RCX user interface
Runbutton will be presses. The running man will then be started.
Runbutton, it will be displayed for about 1.5 seconds whether the tests have been sucessful (
OK) or not (