Make OpenCover reports available in CruiseControl.NET

后端 未结 2 1478
借酒劲吻你
借酒劲吻你 2021-02-09 13:07

I\'m trying to integrate OpenCover with CruiseControl.NET. At this point I\'ve modified by build system so it runs my nunit tests under OpenCover. I then generate Xml and Html r

相关标签:
2条回答
  • 2021-02-09 13:57

    You could use External Links in your ccnet.config after exposing your report via IIS

       <externalLinks>
         <externalLink name="Code Coverage"     url="http://cc.net/coverage" /> 
       </externalLinks>
    
    0 讨论(0)
  • 2021-02-09 14:10

    I had this problem and I solved it with these steps, take into account that I'm using msbuild, so this will only work if you're using msbuild:

    1. Add a Target for Coverage
    2. Add a task to your build.proj for creating the OpenCoverage output (OpenCoverReport.xml)
    3. Right after after that, add a task for creating the Summary report using ReportGenerator (reporttypes:XML). Like so: MSBuild Coverage Target Example
    4. Create the XSL Transforms for creating HTML output with the Summary.xml, don't worry I wrote it already: For parsing assembly level coverage (in your build log output) use the following: XSLT for an Assembly level coverage report and for parsing the Class level coverage (detailed report) use the following: XSLT for a Class level coverage report
    5. Add the buildReportBuildPlugin and xslReportBuildPlugin for creating both reports using the previous XSLT files in your dashboard.config file: Add this to the configuration
    6. Merge the coverage report summary XML file to the Build output, in your ccnet.config file: add this to your configuration
    0 讨论(0)
提交回复
热议问题