Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 87 lines (68 sloc) 3.106 kB
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
1 <?xml version="1.0"?>
38b10fd @fzaninotto [1.5] Made Propel compatible with Phing 2.4.0
fzaninotto authored
2 <project name="Propel Tests" default="phpunit">
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
3
4 <!--
5 =========================================================================================
6 Global Properties
7 ~~~~~~~~~~~~~~~~~
aaff75d @willdurand Removed trailing whitespace, unwanted tabs/spaces and so on...
willdurand authored
8
9 =========================================================================================
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
10 -->
11 <property name="tests.dir" value="./tests" />
12 <property name="tests.phpunit.dir" value="." />
d795755 #383 - Adding workaround behavior for fact that PDO is returning inco…
hans authored
13 <property name="tests.reports.dir" value="${tests.phpunit.dir}/reports" />
14 <property name="tests.tools.dir" value="${tests.phpunit.dir}/tools" />
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
15
16 <property file="./test.properties" />
d795755 #383 - Adding workaround behavior for fact that PDO is returning inco…
hans authored
17
18 <path id="test-tools">
19 <pathelement dir="${tests.tools.dir}" />
20 </path>
21
22 <taskdef name="define" classname="phing.DefineTask" classpathRef="test-tools" />
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
23
24 <!--
25 =========================================================================================
26 PHPUnit Targets
27 ~~~~~~~~~~~~~~~~
aaff75d @willdurand Removed trailing whitespace, unwanted tabs/spaces and so on...
willdurand authored
28
29 =========================================================================================
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
30 -->
31
32 <property name="test.class" value="${test}" />
33
34 <resolvepath propertyName="tests.dir.resolved" file="${tests.phpunit.dir}" />
221b668 @fzaninotto [1.4] reorganized test directory structure (refs #274)
fzaninotto authored
35 <resolvepath propertyName="tests.classes.dir.resolved" file="${tests.phpunit.dir}/testsuite" />
d3191f4 @fzaninotto [1.5] renamed runtime classes directory to lib (refs #778)
fzaninotto authored
36 <resolvepath propertyName="propel-generator.classes.dir.resolved" file="../generator/lib" />
37 <resolvepath propertyName="propel-runtime.classes.dir.resolved" file="../runtime/lib" />
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
38
39 <path id="incthis">
40 <pathelement dir="${tests.dir.resolved}" />
41 <pathelement dir="${tests.classes.dir.resolved}" />
42 <pathelement dir="${propel-generator.classes.dir.resolved}" />
43 </path>
44
45 <target name="configure">
d795755 #383 - Adding workaround behavior for fact that PDO is returning inco…
hans authored
46 <echo>-------------------------------------------------</echo>
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
47 <echo> +++++ Running Propel unit tests</echo>
48 <echo>-------------------------------------------------</echo>
49 <define name="TESTS_BASE_DIR" value="${tests.dir.resolved}" />
d795755 #383 - Adding workaround behavior for fact that PDO is returning inco…
hans authored
50 <adhoc>
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
51 <![CDATA[
61f51c5 @fzaninotto [1.5] Changing runtime autoload strategy (closes #974):
fzaninotto authored
52 // initializes the Propel runtime autoload
53 require_once '${propel-runtime.classes.dir.resolved}/Propel.php';
d795755 #383 - Adding workaround behavior for fact that PDO is returning inco…
hans authored
54 ]]>
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
55 </adhoc>
56
57 <fileset dir="${tests.classes.dir.resolved}" id="relevant-tests">
58 <include name="**/*${test.class}Test.php" />
59 </fileset>
60 </target>
61
62 <includepath classpathRef="incthis" />
63
64 <target name="reports" depends="configure">
65
707ad46 @fzaninotto [1.5][1.6] Updated phing/phpunit version used by unit tests
fzaninotto authored
66 <phpunit haltonerror="false" haltonfailure="false" printsummary="true">
67 <formatter type="xml" usefile="true" todir="${tests.reports.dir}" outfile="test-results.xml" />
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
68 <formatter type="plain" usefile="false" />
69 <batchtest>
70 <fileset refid="relevant-tests" />
71 </batchtest>
707ad46 @fzaninotto [1.5][1.6] Updated phing/phpunit version used by unit tests
fzaninotto authored
72 </phpunit>
73 <phpunitreport format="noframes" todir="${tests.reports.dir}" infile="${tests.reports.dir}/test-results.xml" styledir="${tests.phpunit.dir}/etc/xsl" />
bf3f71b #407 - Adding new version of PropelDateTime that supports time zones.…
hans authored
74 </target>
75
76 <!-- run the insert-sql target of the build.xml unless we are doing this for one specific test -->
77 <target name="initialize" unless="test">
78 <!--
79 <phing phingFile="build.xml" target="insert-sql"/>
80 -->
81 <property name="test.class" value="" override="true" />
82 </target>
83
84 <target name="phpunit" depends="initialize,reports" description="Executes the PHPUnit test suite" />
85
86 </project>
Something went wrong with that request. Please try again.