Page history Edit this page How do I edit this website?
Original MediaWiki page
This page describes content relating to the original version of ImageJ. Click the logo for details.

Unit tests for ImageJ

The content of this page has not been vetted since shifting away from MediaWiki. If you’d like to help, check out the how to help guide!

There are a substantial number of unit tests to exercise ImageJ functionality. You can find them in the ij1-tests repository:

git clone git://

There is a Travis job here that automatically runs the tests with each new version of ImageJ.

Running the tests

If you wish to run the unit tests manually, you can do so from the command line:

cd ij1-tests
mvn clean test

Or from Eclipse:

  1. Import the ij1-tests project using FileImport Existing Maven Projects and choosing the ij1-tests/pom.xml file.
  2. Right-click the ij1-tests project, Run AsJUnit Test.

Using a different version of ImageJ

You can change which version of ImageJ is tested by overriding the imagej1.version property:

mvn -Dimagej1.version=1.48a clean test

Or whichever version you wish to use (of those listed here). The unit tests were created circa 1.44, and do not compile correctly with earlier versions of ImageJ.