Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 55 lines (49 sloc) 2.85 kb
2ae085c Sean Corfield Create a proper test suite.
authored
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <project name="InjectOne" basedir="." default="help">
3
4 <property name="test.server" value="localhost"/>
5 <property name="test.port" value="80"/>
6 <property name="mxunit.home" value="${basedir}/mxunit"/>
7
8 <target name="help">
9 <echo message="test - run the unit tests"/>
10 </target>
11
12 <target name="test" depends="clean">
13 <taskdef name="mxunittask" classname="org.mxunit.ant.MXUnitAntTask" classpath="${mxunit.home}/ant/lib/mxunit-ant.jar"/>
14 <mkdir dir="${basedir}/tests/report"/>
15 <mkdir dir="${basedir}/tests/results"/>
16 <mxunittask server="${test.server}" port="${test.port}"
17 outputdir="${basedir}/tests/results"
18 haltonerror="false" haltonfailure="false"
19 verbose="false"
20 errorproperty="testfailed" failureproperty="testfailed">
cc2d8df Sean Corfield Give all tests a Test suffix so they show up in MXUnit's Eclipse plugin
authored
21 <testcase name="tests.AddBeanTest" packageName="tests.AddBeanTest"/>
22 <testcase name="tests.BeanInfoTest" packageName="tests.BeanInfoTest"/>
23 <testcase name="tests.CircularTest" packageName="tests.CircularTest"/>
24 <testcase name="tests.ConstantTest" packageName="tests.ConstantTest"/>
25 <testcase name="tests.DeclareBeanTest" packageName="tests.DeclareBeanTest"/>
26 <testcase name="tests.defaultargTest" packageName="tests.defaultargTest"/>
27 <testcase name="tests.EmptyTest" packageName="tests.EmptyTest"/>
28 <testcase name="tests.ExtraBeansTest" packageName="tests.ExtraBeansTest"/>
29 <testcase name="tests.InjectPropertiesTest" packageName="tests.InjectPropertiesTest"/>
30 <testcase name="tests.MappingTest" packageName="tests.MappingTest"/>
31 <testcase name="tests.ModelTest" packageName="tests.ModelTest"/>
32 <testcase name="tests.ModelServiceTest" packageName="tests.ModelServiceTest"/>
33 <testcase name="tests.OnLoadTest" packageName="tests.OnLoadTest"/>
34 <testcase name="tests.ParentTest" packageName="tests.ParentTest"/>
35 <testcase name="tests.singletonPatternTest" packageName="tests.singletonPatternTest"/>
36 <testcase name="tests.TransientTest" packageName="tests.TransientTest"/>
37 <testcase name="tests.transientPatternTest" packageName="tests.transientPatternTest"/>
2ae085c Sean Corfield Create a proper test suite.
authored
38 </mxunittask>
39 <junitreport todir="${basedir}/tests/report">
40 <fileset dir="${basedir}/tests/results">
41 <include name="**/*.xml"/>
42 </fileset>
43 <report format="frames" todir="${basedir}/tests/report" styledir="${mxunit.home}/ant/xsl"/>
44 </junitreport>
45 <echo message="Test results: http://${test.server}:${test.port}/tests/report/index.html"/>
c406139 Sean Corfield Ensure build actually FAILS if tests fail!
authored
46 <fail message="Tests Failed!" if="testfailed"/>
2ae085c Sean Corfield Create a proper test suite.
authored
47 </target>
48
49 <target name="clean">
50 <delete dir="${basedir}/tests/report" includeemptydirs="true"/>
51 <delete dir="${basedir}/tests/results" includeemptydirs="true"/>
52 </target>
53
54 </project>
Something went wrong with that request. Please try again.