Skip to content

Commit 352daa4

Browse files
committed
unified workbench additions
1 parent 616c05d commit 352daa4

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

tests/test.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
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?

tests/test.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,37 @@ PLEASE NOTE THAT YOU MUST ALTER THE RUNNER'S URL ACCORDING TO YOUR ENVIRONMENT.
132132
<fail if="test.failed"/>
133133
</target>
134134

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}&amp;directory=${test.directory}&amp;recurse=${test.recurse}&amp;reporter=${test.reporter}&amp;labels=${test.labels}&amp;reportPath=${report.dir}&amp;propertiesSummary=true&amp;directoryExcludes=${test.directoryExcludes}&amp;cfid=123&amp;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+
135166
<target name="run-junit" depends="init" description="Run our tests and produce ANT JUnit reports">
136167

137168
<!-- Directory Runner

0 commit comments

Comments
 (0)