3 Replies Last post: Oct 16, 2013 4:18 PM by Fedor Buyvol-Kot  
Sara Berry Newbie 2 posts since
Oct 3, 2013
Currently Being Moderated

Oct 3, 2013 10:20 PM

No Code Coverage results when running coverage in build environment

We are attempting to incorporate code coverage into our build process. We currently use TFS 2010 and test with Visual Studio 2012 against the projects. During the build process, we deploy our product into a deployment environment, mimicking a client install. This means that the compiled DLL’s are all deployed into specific folders. Then to run our remote unit tests, we also deploy the unit test DLL’s to the same folders. Our build script then runs MSTest remotely through a bat file against those test containers (unit test dll’s). We get unit test results just fine doing this method.

 

Now that we are incorporating code coverage, we are running into an issue when running the command-line console runner for code coverage. Using the Analyse command in an xml file in our deployed environment returns no results. The HTML file is created, but only the root node is displayed. (DotCover runs the unit tests and those results are fine, but doesn’t show any coverage results.) However, when running dotCover on a local developer machine the same way (but obviously pointed to bin\debug folders), it runs fine and returns results for both unit tests and code coverage.

We have tried adding PDB files to our deployed environment and still no code coverage results. Can you help us? Thanks!

Fedor Buyvol-Kot JetBrains 95 posts since
Dec 9, 2011
Currently Being Moderated
Oct 9, 2013 4:04 PM in response to: Sara Berry
Re: No Code Coverage results when running coverage in build environment

Hi Sara,

 

Thank you for contacting us and sorry for the delayed answer.
We need dotCover log file for the case of your deployed environment to investigate this problem. To enable it please add following command line parameters: /LogFile=path_to_the_log_file /CoreLogMask=PdbBridge

Fedor Buyvol-Kot JetBrains 95 posts since
Dec 9, 2011
Currently Being Moderated
Oct 16, 2013 4:18 PM in response to: Sara Berry
Re: No Code Coverage results when running coverage in build environment

Hi Sara,

 

There are multiple records in your log file like this:

 

9:53:04 AM.048: Thread:21: 000010E0 1 113A0020 PDBB::LoadModule mvid={3A9CF6A0-74BA-49C7-8A5D-C686ED9C72DD} name='C:\Program Files\Terumo BCT\Reveos System Manager\Services\RSM Cadence Service\TestResults\Administrator_USBSRDRSMWEB3 2013-10-11 09_52_56\Out\BCT.RSM.Services.Cadence.IntegrationTests.dll'
9:53:04 AM.048: Thread:21: 000010E0 1 113A0020 PDBB::LoadModule cmd=LoadModule id=1 size=210
9:53:04 AM.048: Thread:21: 00000500 1 00000000 PDBB::DoWorkThread awr=LoadModule id=1 size=9 pdbmid=0

pdbmid=0 shows that dotCover couldn't find a PDB file for a corresponding dll. Could you please check that these PDB-s were in the same folders as test dll-s?

More Like This

  • Retrieving data ...