0
当前我正在尝试使用jenkins部署我的项目代码。 在这个项目中,我们使用Junit来实现TDD方法。jenkins中的Ant-Junit集成错误
现在在詹金斯的最后,我得到了由于3个错误而导致的Build Failed错误。
在XML文件中的junit-Ant集成(我用foundation.xml文件用于此目的使用Maven结构的XML文件一起,这个行家结构的XML文件在蚂蚁的build.xml进口)1错误,下面是我为这个集成代码,错误在第1行只显示(测试失败:在詹金斯控制台错误):
<junit printsummary="yes" haltonfailure="${test.haltonfailure}" haltonerror="${test.haltonerror}" fork="true" forkmode="perBatch" dir="${basedir}">
<jvmarg value="-Xms256m"/>
<jvmarg value="-Xmx600m"/>
<jvmarg value="-XX:MaxPermSize=600m"/>
<jvmarg value="-XX:+UseConcMarkSweepGC"/>
<jvmarg value="-XX:+CMSClassUnloadingEnabled"/>
<sysproperty key="COMPUTERNAME" value="${env.COMPUTERNAME}"/>
<sysproperty key="messaging.properties" value="${messaging.properties}"/>
<sysproperty key="log.dir" value="${build.testoutput}"/>
<sysproperty key="messaging.dir" value="."/>
<sysproperty key="log4j.debug" value="true"/>
<sysproperty key="aib.tests.selector.productMetaData" value="${pmf.testSelectorValue}"/>
<classpath>
<path refid="test.execution.classpath"/>
<path refid="test.config.path"/>
</classpath>
<formatter type="xml"/>
<batchtest fork="yes" todir="${build.testoutput}">
<fileset refid="test.classesToTest.fileset"/>
</batchtest>
<batchtest fork="yes" todir="${build.testoutput}" if="test.classesToTestInSeperateJVM.fileset.nonempty">
<fileset refid="test.classesToTestInSeperateJVM.fileset"/>
</batchtest>
</junit>
第二个错误,而在执行这条线出现以下错误: 是build.xml文件**
参数名称“include.pmf.tests”行
**
<target name="ci-build" description="runs the ci version of the build process">
<antcall target="base-build">
<param name="include.pmf.tests" value="true"/>
<param name="analyse.code" value="false"/>
</antcall>
</target>
和最后erroris在执行这条线出现以下错误: 也build.xml中,同时建立(SDK)的模块的一个
<build dir="business-domain"/>
成功构建后,我想为各种测试套装生成Junit报告。 Junit测试报告xmls现在正在为每个模块生成。