[ImageJ-devel] imglib2-io as a test phase dependency of imglib-algorithms

Johannes Schindelin Johannes.Schindelin at gmx.de
Thu Jun 20 14:58:42 CDT 2013


Hi Lee,

On Thu, 20 Jun 2013, Lee Kamentsky wrote:

> I was thinking it would be nice (= makes my life a little easier) if
> imglib2-io was a test phase dependency of imglib-algorithms so you could
> use test images in imglib2 tests. I'm thinking of storing very small
> .tifs as resources in the test packages, hope 100x100 pixels is a
> reasonable size for GIT, still haven't figured out the best strategy for
> writing the resource to a file so that it can be loaded.

I am actually surprised that nobody picked up on my idea of
quickly-generated test images:

	https://github.com/imagej/imglib/blob/master/core/src/test/java/tests/JUnitTestBase.java#L197

This would have the huge advantage of not cluttering any source code with
binary images, growing the repository to unwieldy sizes.

Ciao,
Johannes



More information about the ImageJ-devel mailing list