File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1
- url.runner =http://localhost:49616/tests/runner.cfm?
1
+ url.runners.lucee@4.5 =http://127.0.0.1:50680/tests/runner.cfm?
2
+ url.runners.lucee@5 =http://127.0.0.1:50685/tests/runner.cfm?
3
+ url.runners.adobe@10 =http://127.0.0.1:49610/tests/runner.cfm?
4
+ url.runners.adobe@11 =http://127.0.0.1:49611/tests/runner.cfm?
5
+ url.runners.adobe@2016 =http://127.0.0.1:49616/tests/runner.cfm?
Original file line number Diff line number Diff line change @@ -132,6 +132,37 @@ PLEASE NOTE THAT YOU MUST ALTER THE RUNNER'S URL ACCORDING TO YOUR ENVIRONMENT.
132
132
<fail if =" test.failed" />
133
133
</target >
134
134
135
+ <target name =" runEngine" depends =" init" description =" Generic run method for alternate CFML engines" >
136
+
137
+ <macrodef name =" propertycopy" >
138
+ <attribute name =" name" />
139
+ <attribute name =" from" />
140
+ <sequential >
141
+ <property name =" @{name}" value =" ${@{from}}" />
142
+ </sequential >
143
+ </macrodef >
144
+
145
+ <property name =" runnerPath" value =" url.runners.${engine}" />
146
+ <propertycopy name =" urlRunner" from =" ${runnerPath}" />
147
+
148
+ <get dest =" ${report.dir}/results.txt"
149
+ src =" ${urlRunner}& directory=${test.directory}& recurse=${test.recurse}& reporter=${test.reporter}& labels=${test.labels}& reportPath=${report.dir}& propertiesSummary=true& directoryExcludes=${test.directoryExcludes}& cfid=123& cftoken=123"
150
+ verbose =" true"
151
+ ignoreerrors =" true" />
152
+
153
+ <!-- Read Result Properties -->
154
+ <property file =" ${report.dir}/TEST.properties" />
155
+ <!-- Echo them out -->
156
+ <echoproperties regex =" ^(test|total).*" />
157
+ <!-- Echo actual results -->
158
+ <loadresource property =" testresults" >
159
+ <file file =" ${report.dir}/results.txt" />
160
+ </loadresource >
161
+ <echo message =" ${testresults}" />
162
+ <!-- Fail build if they failed -->
163
+ <fail if =" test.failed" />
164
+ </target >
165
+
135
166
<target name =" run-junit" depends =" init" description =" Run our tests and produce ANT JUnit reports" >
136
167
137
168
<!-- Directory Runner
You can’t perform that action at this time.
0 commit comments