Sunday, February 21, 2010

junit.framework.AssertionFailedError: No tests found in BLA

most likely you forgot to set ANT_HOME to the right value... I am using JUnit4, so I want to use the latest version of Ant:

export ANT_HOME=/weblogic/bea10.3/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.apache.ant_1.7.0.v200706080842
ant -verbose



and remember to set

export CLASSPATH=/weblogic/bea10.3/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.junit4_4.3.1/junit.jar


Ant is a piece of crap, JUnit even  more so. Why should a man struggle so much to run Unit Tests.

No comments: