Datamal Blog

Thursday, September 23, 2004

JUnit thru Ant



public MyTestSuite() {
this.add(new MyTest("someTest));
this.add(new MyTest("someOtherTest));
}


This can go to the Ant build. This way you no need to rebuild your test classes and for me Ant's Fileset look very similar to the groups in TestNG. For example


<junit ...>
<batchtest ...>
<fileset dir="${src.dir}">
<include name="**/*Test.java"/>
</fileset>
</batchtest>
...
</junit>


0 Comments:

Post a Comment

<< Home