TeamBuild、代码覆盖率和测试运行配置文件 [英] TeamBuild, Code Coverage & testrun config files
问题描述
我有用于 CI 和夜间构建的团队构建脚本,它们都运行具有代码覆盖率的单元测试.我已经指定了 testrun 配置文件,其中包含要检测的程序集的路径.
I have team build script for CI and nightly builds, both of which runs unit tests with code coverage. I have specified the testrun config file and this include paths for the assemblies to instrument.
我的问题是,程序集的路径是绝对的,例如:
My problem is, the paths for the assemblies is absolute, eg:
<CodeCoverageItem
binaryFile="C:\build\Product\PROJECT\Integration\Binaries\Debug\BlahBlah.Cache.dll"
pdbFile="C:\build\Product\PROJECT\Integration\Binaries\Debug\BlahBlah.Cache.pdb"
instrumentInPlace="true" />
我宁愿这些使用相对路径,或者我可以在其中指定 $(OutDir).
I would rather these used relative paths or I could specify $(OutDir) in there.
有人解决了吗?
谢谢
推荐答案
是的,您应该能够使用相对路径 - 相对于 LocalTestRun.testrunconfig 文件(通常存储在在与解决方案文件相同的文件夹中).
Yes, you should be able to use relative paths - paths that are relative to the LocalTestRun.testrunconfig file (which is typically stored in the same folder as the solution file).
这篇关于TeamBuild、代码覆盖率和测试运行配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!