Download NDepend Trial Now   Analyze your .NET code and discover flaws in less than 10 minutes
Ignorer les liens de navigation
Home
Download
Product ▼
Purchase
Upgrade
Documentation ▼
About ▼

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:

  • 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