Download NDepend Trial Now
Analyze your .NET code and discover flaws in less than 10 minutes
Home
Download
Product ▼
Purchase
Upgrade
Documentation ▼
About ▼
Features
Sample Reports
Screenshots
Editions Comparison
FAQ
Testimonials
Release Notes
CppDepend, NDepend for C++
Getting Started
VisualNDepend
Metrics Definitions
Dependency Structure Matrix
Visual Studio Extra-Features
Build Process Integration
Visualizing Code Metrics
Coverage FAQ
CQL Specifications
Declare CQL Rules in Source Code
NDepend Material
White Books
Advanced Documentation
Advanced Code Diff
Exploring Existing Code Architecture
Validating CQL Code Rules
Rich Code Search Facilities
Developing Application-Wide
NDepend Console
NDepend Analysis
Customize NDepend Report
Critical Rules and Build Failure
Understanding NDepend Analysis Inputs
Reporting Code Diff
Source Files Rebasing
Integrate NDepend with TFS
Integrate NDepend with CruiseControl.NET
Integrate NDepend with FinalBuilder
Integrate NDepend with TeamCity
Contact Us
NDepend Partners
EULA
Coverage Data FAQ
Which coverage technology is supported by NDepend?
How to get XML Coverage Files from NCover 2.X and above?
How to get XML Coverage Files from JetBrains DotCover™ 1.1 and above?
How to get XML Coverage Files from Visual Studio™ 2010, 2008 and 2005?
How to provide a list of coverage files to parse during each analysis run?
How to import coverage data into some analysis results?
Which coverage technology is supported by NDepend?
NDepend can import coverage data from:
NCover™ 2.x and 3.x
coverage files
Visual Studio™ 2010, 2008 and 2005
XML coverage files
JetBrains DotCover™ 1.1 and above
XML coverage files (with special NDepend formatting)
How to get XML Coverage Files from NCover 2.X and above?
Coverage files are in the folders specified by the
NCover.Console.exe XML report
command line flag.
If you are using
TestDriven.NET
and/or
NCoverExplorer.exe
you can access folder that contains coverage file from the
Explore Coverage Folder
menu:
How to get XML Coverage Files from JetBrains DotCover™ 1.1 and above?
By default DotCover outputs XML coverage file. However NDepend cannot parse the default DotCover XML coverage file. You need to configure DotCover to output NDepend XML files. This can be done this way in your DotCover configuration file:
<?
xml
version
=
"
1.0
"
encoding
=
"
utf-8
"
?>
<
AnalyseParams
>
<
Executable
>
C:\App\Bin\MyApp.exe
</
Executable
>
<
Output
>
..\DotCoverCoverage.xml
</
Output
>
<
ReportType
>
NDependXml
</
ReportType
>
</
AnalyseParams
>
How to get XML Coverage Files from Visual Studio™ 2010, 2008 and 2005?
Visual Studio™
has 2 coverage files format.
A binary format where file extension is
.coverage
. This is the format you'll get from testing from
Visual Studio
or from
TestDriven.NET
. Alternatively you can also use the tool
VSPerfMon.exe
to get a
.coverage
file. For that you then need to instrument each assembly to cover with the tool
VSInstr.exe
used with the
/Coverage
option.
A XML format. (with file extension
.coveragexml
since VS 2010, and
.xml
for previous versions)
NDepend only consumes the XML format. You can manually export XML coverage files from binary coverage files from
Visual Studio
with this option:
You can programmatically transform a binary coverage file into a xml coverage file. See the
Microsoft
documentation:
http://blogs.msdn.com/ms_joc/articles/406608.aspx
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=273875&SiteID=1
How to provide a list of coverage files to parse during each analysis run?
In VisualNDepend menu:
Project Properties > Analysis > Code Coverage > Settings
How to import coverage data into some analysis results
In VisualNDepend menu:
Coverage > Import > Coverage Files
|
Share
Follow us on Twitter
Watch a Video Tour!
Getting Started
Product Features
Enhanced Reports!
NDepend is also available
for
Java
and
C++
Customers
Full Visual Studio Integration
Copyright © 2004-2012 SMACCHIA.COM S.A.R.L -
LoanForUs