TeamBuild、代码覆盖率和测试运行配置文件 [英] TeamBuild, Code Coverage & testrun config files

查看:31
本文介绍了TeamBuild、代码覆盖率和测试运行配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有用于 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.testrunco​​nfig 文件(通常存储在在与解决方案文件相同的文件夹中).

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆