Profil de TerryValley of SpiritSeekerSPhotosBlogListesPlus Outils Aide

Blog


02/04/2007

千万别相信别人对你的服务

-- 指望别人不如指望自己
-- 过于相信他人等于自杀
28/11/2005

JUNIT Related Tools

1. Jester

Jester is a tool written by Ivan Moore for finding java code that is not tested. It change your application's source code then recompiling, and running the test suite. If all the tests still pass after making changes, then there is potentially a problem and it is reported.

Configuation File:
a. jester.cfg
b. mutations.cfg
c. ignorelist.cfg

Using java:


Using Ant:

  <target name="jester" depends="">
    <delete dir="${modifiedsrc}"/>
    <copy todir="${modifiedsrc}">
      <fileset dir="${src}">
        <exclude name="**/*Test.java"/>
        <exclude name="**/AllTests.java"/>
      </fileset>
    </copy>
    <java classpath="${classpath}" classname="jester.TestTester">
      <arg value="-cp=${classpath}"/>
      <arg value="myproject.AllTests"/>
      <arg value="${modifiedsrc}/myproject"/>
    </java>
  </target>