PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/testability.xml

http://testability-explorer.googlecode.com/
XML | 48 lines | 34 code | 5 blank | 9 comment | 0 complexity | eacaaf91623828e547bbb7bf79a3ccca MD5 | raw file
 1<project name="testability" default="testability.none">
 2
 3    <import file="base.xml"/>
 4
 5    <taskdef name="testability" classname="com.google.ant.TestabilityTask"  classpathref="test.classpath"/>
 6
 7    <target name="testability.none">
 8        <testability>
 9            <fileset dir="lib">
10                <include name="junit.jar"/>
11            </fileset>
12            <!--<fileset dir="lib/apache-ant-1.7.0/lib">-->
13                <!--<include name="ant-*.jar"/>-->
14            <!--</fileset>-->
15        </testability>
16    </target>
17
18    <target name="testability.all">
19        <testability filter="" resultfile="te.html" errorfile="System.err"
20                printdepth="2" grouping="package" print="html" mincost="1" maxexcellentcost="50"
21                maxacceptablecost="100" worstoffendercount="20" whitelist=""
22                cyclomatic="1" global="10">
23            <fileset dir="lib">
24                <include name="junit.jar"/>
25            </fileset>
26            <!--<fileset dir="lib/apache-ant-1.7.0/lib">-->
27                <!--<include name="ant-*.jar"/>-->
28            <!--</fileset>-->
29        </testability>
30    </target>
31
32    <target name="testability.detail">
33        <testability filter="" resultfile="System.out" errorfile="System.err"
34                printdepth="2" print="detail" mincost="1" maxexcellentcost="50"
35                maxacceptablecost="100" worstoffendercount="20" whitelist=""
36                cyclomatic="1" global="10">
37            <fileset dir="lib">
38                <include name="junit.jar"/>
39            </fileset>
40            <!--<fileset dir="lib/apache-ant-1.7.0/lib">-->
41                <!--<include name="ant-*.jar"/>-->
42            <!--</fileset>-->
43        </testability>
44    </target>
45    <target name="testability.test" depends="testability.all">
46        <fail if="testability.failproperty" message="testability failed"/>
47    </target>
48</project>