Batch-excluding projects from Infinitest execution

Infinitest is a really great plugin for Eclipse. It executes all JUnit tests it can find whenever something changes. After I downloaded DKPro core, a multi-module Maven project, may CPU was running for quite a long time, until all unit tests had been executed once – even though I just wanted to look at the code…

To keep Infinitest from executing these tests over and over again on the next occasion, I put an infinitest.filters file in every single of the 72(!) modules as follows:

# Prepare file with regex that matches all test cases
echo ".*" > /tmp/infinitest.filters

# Go to the directory of the aggregator project de.tudarmstadt.ukp.dkpro.core-asl and then
find . -name "de*" -maxdepth 1 -type d -exec cp /tmp/infinitest.filters {} \;

Surely, there is also a one-liner that solves the problem, but one works very reliable for me :-)

Leave a Reply