如何使SpecUnit在TeamCity CI构建中运行
时间:2020-03-05 18:43:16 来源:igfitidea点击:
我正在尝试让SpecUnit在使用Nant的连续集成版本中运行。目前,文件位于正确的位置,但SpecUnit.Report.exe没有生成任何输出。这是nant构建脚本中的相关任务:
<echo message="**** Starting SpecUnit report generation ****" /> <copy file="${specunit.exe}" tofile="${output.dir}SpecUnit.Report.exe" /> <exec program="${output.dir}SpecUnit.Report.exe" failonerror="false"> <arg value="${acceptance.tests.assembly}" /> </exec>
请注意:
- $ {specunit.exe}是SpecUnit.Report.exe所在位置的完整路径。
- $ {output.dir}是当前构建代理的teamcity输出目录。
- " $ {acceptance.tests.assembly}"是" AcceptanceTests.dll"
有人尝试过吗?
解决方案
回答
我们需要指定我认为的汇编参数的完整路径...
<exec program="${output.dir}SpecUnit.Report.exe" verbose="true"> <arg value="${output.dir}${acceptance.tests.assembly}" /> </exec>