ColdFusion TestBox Ant错误

时间:2017-04-03 19:47:58

标签: jenkins ant coldfusion coldbox

我的目标是在Jenkins上运行TestBox脚本。但是使用来自的Ant脚本 https://testbox.ortusbooks.com/content/running_tests/ant_runner.html
作为模板,我收到此错误

  

建立失败   C:\ public \ data \ trunk \ AutomatedTesting \ Box_Unit_Tests \ build.xml:38:对实体的引用" bundle"必须以&#39 ;;'结尾分隔符。

使用此脚本:

<?xml version="1.0" encoding="UTF-8"?>
<project name="testbox-ant-runner" default="init" basedir=".">

     <!-- THE URL TO THE RUNNER, PLEASE CHANGE ACCORDINGLY-->
     <property name="basedir"             value="C:\public\data\trunk\AutomatedTesting\Box_Unit_Tests" />
     <property name="url.runner"        value="C:\public\data\ColdBox\testbox\test-harness\runner.cfm?"/>
     <!-- FILL OUT THE BUNDLES TO TEST, CAN BE A LIST OF CFC PATHS -->
     <property name="test.bundles"      value="http://localhost/application/testing/TestBox/Hello.cfc?method=runRemote" />
     <!-- FILL OUT THE DIRECTORY MAPPING TO TEST -->
     <property name="test.directory"    value="test.specs" />
     <!-- FILL OUT IF YOU WANT THE DIRECTORY RUNNER TO RECURSE OR NOT -->
     <property name="test.recurse"      value="true" />
     <!-- FILL OUT THE LABELS YOU WANT TO APPLY TO THE TESTS -->
     <property name="test.labels"       value="" />
     <!-- FILL OUT THE TEST REPORTER YOU WANT, AVAILABLE REPORTERS ARE: ANTJunit, Codexwiki, console, dot, doc, json, junit, min, raw, simple, tap, text, xml -->
     <property name="test.reporter"     value="simple" />
     <!-- FILL OUT WHERE REPORTING RESULTS ARE STORED -->
     <property name="report.dir"        value="${basedir}\results" />
     <property name="junitreport.dir"   value="${report.dir}\junitreport" />

     <target name="init" description="Init the tests">
          <mkdir dir="${junitreport.dir}" />
          <tstamp prefix="start">
               <format property="TODAY" pattern="MM-dd-YYYY hh:mm:ss aa"/>
          </tstamp>
          <concat destfile="${report.dir}\Latestrun.log">Tests ran at ${start.TODAY}</concat>
     </target>

    <target name="run">
        <get dest="${report.dir}/results.html"
             src="${url.runner}&bundles=${test.bundles}&reporter=${test.reporter}"
             verbose="true"/>

        <-- Create fancy junit reports -->
      <junitreport todir="${junitreport.dir}">
           <fileset dir="${report.dir}">
                <include name="TEST-*.xml"/>
           </fileset>
           <report format="frames" todir="${junitreport.dir}">
                <param name="TITLE" expression="My Awesome TestBox Results"/>
           </report>
      </junitreport>
    </target>

</project>

有什么想法吗?

0 个答案:

没有答案