排除的项目阻止 Team Foundation Build 测试步骤 [英] Excluded projects block Team Foundation Build test step

查看:21
本文介绍了排除的项目阻止 Team Foundation Build 测试步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题的后续,仅使用 Team Foundation 构建选定项目构建:我现在已经成功地隔离"了包含 20 多个项目的解决方案中的三个项目.三个项目之一是测试项目,其中包含其他项目之一(类库)的单元测试.

A followup to this question, Building select projects only with Team Foundation Build: I’ve now successfully "isolated" three of the projects in a solution with 20+ projects. One of the three projects is a test project, which contains unit tests for one of the other projects (a class library).

Team Build 运行良好,只有三个项目包含在该过程中.但是,当我将测试项目中的测试作为构建的一部分运行时,测试通过但构建在运行测试"步骤中失败,并且我在构建日志中收到以下消息:

Team Build is running fine, just the three projects are included in the process. However, when I run the tests in the test project as a part of the build, the tests pass BUT the build fails on the "Running Tests" step, and I get this message in the build log:

TESTTOOLSTASK:仪器警告:找不到二进制文件C:\Users...[缺少的本地路径dll].
之前的错误被转换为警告,因为任务被调用ContinueOnError=true.

TESTTOOLSTASK : Instrumentation warning : cannot find binary C:\Users...[local path to a missing dll].
The previous error was converted to a warning because the task was called with ContinueOnError=true.

对于作为解决方案的一部分的三个不同的 dll 重复出现了相同的消息,但我 100% 肯定我正在尝试构建的三个项目中没有对这些 dll 的引用.它们如何包含在我的构建/测试过程中?我该如何处理这个错误?

The same message is repeated for three different dlls, which are part of the solution, but I’m 100% certain that there are no references to these dlls from the three projects I’m trying to build. How do they get included in my build/test process? And how do I deal with this error?

推荐答案

原来这三个神秘项目启用了代码覆盖,这导致它们在测试中被引用.
我的解决方案中也有数据库项目,这似乎把事情搞得更糟了.

It turns out the three mysterious projects had Code Coverage enabled, which caused them to be referenced in the tests.
I also had Database Project in the solution which seemed to screw things up even further.

这篇关于排除的项目阻止 Team Foundation Build 测试步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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