Code Coverage disabled on all my agents
-
Thursday, July 19, 2012 8:32 PM
I am in the process of setting up a build that I intend to collect code coverage results. The testsettings file is configured for 'Remote Execution'. When I preview the agents this testsettings file will leverage I have notices that 'Code Coverage' is disabled for all my agents. Do I need to go to my agents and enable this adapter? If so, how do I do that?
Thanks,
Eric
Eric
All Replies
-
Friday, July 20, 2012 12:58 AM
Hi, I am not exactly sure where you are seeing the code coverage disabled sign. However, I know that you need to install visual studio premium/ultimate on the agents when you enable code coverage.
Thanks,
Anuj
http://www.anujchaudhary.com
-
Friday, July 20, 2012 11:56 AM
In your test settings file under Roles you can Preview matching test agents. You will see a tree of all your test agents, from there you can expand the tree and see which data adapters are enabled or disabled. Even my dev box which has 2010 Ultimate installed shows the Code Coverage adapter disabled.
Thanks,
Eric
Eric
-
Monday, July 23, 2012 6:08 AMModerator
Hi Eric,
Thank you for posting in the MSDN forum.
You can only use code coverage when you run an automated test, and only from the computer that is running the test. Remote collection is not supported. If you want to get the code coverage in VS, you would enable it manually. You could get it with the following option.
Local.testsettings->Data and Diagnostics->Code Coverage.
See “How to: Configure Code Coverage Using Test Settings for Automated Tests”
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
-
Monday, July 23, 2012 12:50 PM
Jack,
I am running Automated CodedUI Test, they are setup to run remotely, and I have enabled the Code Coverage data adapter, this is all being run via Team Build. My question is why do the agents show this? And the tool tip that is displayed tell me to update the agent's config file the enable the data adapter.
Regards,
Eric
-
Tuesday, July 24, 2012 6:55 AMModerator
Hi Eric,
I try to check it, I get the same result, as far as I know, Remote collection does not support it in VS2010, so it was disabled, but in the VS2012 RC, it works well, you could get the result like the following screen shot if you use the VS2012 RC and the latest Test Controller and Agent.
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
- Edited by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Tuesday, July 24, 2012 6:56 AM
- Marked As Answer by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Friday, July 27, 2012 8:48 AM

