You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Phil Steitz <ph...@gmail.com> on 2005/09/10 20:27:32 UTC

[math] unit test performance, selectively running tests

The [math] unit tests take a long time to run. The longest running tests are 
HyperGeometricDistributionTest and EmpiricalDistributionTest. I don't see 
anything that can be done easily to speed these up without reducing coverage 
or sensitivity, but would welcome any suggestions / patches to improve their 
performance. 

To avoid running all of the tests when making localized changes, you can use 
the test:match goal of the maven test plugin:

maven -Dtestmatchpattern="**/util/*Test.java" 
-Dtestnotmatchpattern="**/*Abstract*" test:match

for example, will run only the tests in the util package. This requires 
version 1.7 of the maven test plugin.

Of course, before making diffs for patches or committing changes, we should 
always do a full "maven clean test." 

Phil