Can I get code coverage data for integration tests using Visual Studio?

I am testing an ASP.NET application and I want to get code coverage information about how much of the product code runs my integration tests. Our libraries are already equipped with tools and symbol files (pdb) are available, but I need to know exactly how to enable Visual Studio to execute code in IIS and return the .coverage file. My integration tests are a combination of web avi tests and Selenium browser tests.

Can this be done?

+5
source share
1 answer

, , Dynamic Code Coverage, Visual Studio 2013. Premium, , .

IIS :

<VisualStudioInstallDirectory>\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe collect /IIS /session:WebSession /output:<CoverageOutputFileName>.coverage

IIS .

( , ). :

<VisualStudioInstallDirectory>\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe shutdown /session:WebSession 

, Visual Studio. , shutdown CodeCoverage.exe. IIS CodeCoverage.exe.

:

  • , . .
  • Visual Studio, Visual Studio , .
  • xml, (, ReportGenerator), :

    \ \ \CodeCoverage.exe InputCoverageFile.coverage/output:OutputFile.coveragexml

+2

All Articles