Excluded projects block Team Foundation Build test step

时光毁灭记忆、已成空白 提交于 2019-12-25 04:36:07

问题


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 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 : 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.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/1837733/excluded-projects-block-team-foundation-build-test-step

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!