testrunconfig

Why don't I get code coverage results for C++/CLI project in Visual Studio 2010?

我与影子孤独终老i 提交于 2020-01-06 16:22:20
问题 I've recently upgrade my solution to Visual Studio 2010. I have 4 projects I want to cover using unit tests - 3 C# and 1 C++/CLI. I get coverage for the C# projects but not for the C++/CLI project. I did get for all of them in Visual Studio 2008. I've configured the assemblies using testrunconfig -> Data and Diagnostics -> Code Coverage -> Configure. Why don't I get code coverage result for the C++/CLI project? 回答1: I've found out what was wrong. It appears that the upgrade from Visual Studio

Why don't I get code coverage results for C++/CLI project in Visual Studio 2010?

非 Y 不嫁゛ 提交于 2020-01-06 16:22:06
问题 I've recently upgrade my solution to Visual Studio 2010. I have 4 projects I want to cover using unit tests - 3 C# and 1 C++/CLI. I get coverage for the C# projects but not for the C++/CLI project. I did get for all of them in Visual Studio 2008. I've configured the assemblies using testrunconfig -> Data and Diagnostics -> Code Coverage -> Configure. Why don't I get code coverage result for the C++/CLI project? 回答1: I've found out what was wrong. It appears that the upgrade from Visual Studio

Why don't I get code coverage results for C++/CLI project in Visual Studio 2010?

馋奶兔 提交于 2020-01-06 16:22:02
问题 I've recently upgrade my solution to Visual Studio 2010. I have 4 projects I want to cover using unit tests - 3 C# and 1 C++/CLI. I get coverage for the C# projects but not for the C++/CLI project. I did get for all of them in Visual Studio 2008. I've configured the assemblies using testrunconfig -> Data and Diagnostics -> Code Coverage -> Configure. Why don't I get code coverage result for the C++/CLI project? 回答1: I've found out what was wrong. It appears that the upgrade from Visual Studio

How to create the vsmdi/testrunconfig file when importing a Visual Studio test project?

痴心易碎 提交于 2019-12-04 18:15:32
问题 When I add an existing test project, my solution lacks the vsdmi and the testrunconfig files. How to create it? 回答1: In Visual Studio 2010 just go to Test → Create New Test List... It will automatically add the vsdmi file and put it into the correct location, no need to add a solution item manually. 回答2: The solution to this is a little tricky. You have to add a "New Item" to your solution, not your test project. In the "Add New Item" dialog, you can pick the "Test Run Configuration" category