如何让 SpecUnit 在 TeamCity CI 构建中运行
题
我正在尝试使用 Nant 让 SpecUnit 在持续集成构建中运行。目前,文件位于正确的位置,但 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>
不隶属于 StackOverflow