Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8421565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:11:02+00:00 2026-06-10T03:11:02+00:00

I set up OpenCover in my MSBuild script, setup the ReportGenerator, and have it

  • 0

I set up OpenCover in my MSBuild script, setup the ReportGenerator, and have it output as an artifact and have a custom tab – all of that works great. Here is my MSBuild target:

<Target Name="Test">

        <!-- Check Code Coverage -->
        <Exec Command="..\..\tools\OpenCover.4.0.519\OpenCover.Console.exe -register:user -target:..\..\tools\NUnit\nunit-console.exe -targetargs:&quot;$(TestAssemblies) /xml=NUnitReport.xml /noshadow&quot; -filter:&quot;+[HelloWorld.Mvc3UI*]* -[HelloWorld.Mvc3UI.UnitTests*]*&quot; -output:OpenCoverReport.xml"></Exec>

        <!-- Format Code Coverage Report -->
        <Exec Command="..\..\tools\ReportGenerator.1.5.0.0\ReportGenerator.exe OpenCoverReport.xml OpenCoverReport"></Exec>

</Target>

However, in order to run OpenCover it attaches to the NUnit runner to produce the report, which in turn runs all of the unit tests. While this can produce an xml output for the unit tests, I have yet to find an xsl file to produce reports as good as the ones built into TeamCity 7.1, much less the filtering and searching capabilities.

But if I enable the reports in TeamCity using the built-in NUnit runner (aparently the only way to get the unit test report in TeamCity), it re-runs the unit tests to generate its report.

While all this works, my question is whether there is a way to get both reports without having to run all of the unit tests twice? Specifically, can OpenCover generate its report without running the NUnit tests or can TeamCity generate its report without running the unit tests?

Note that this is an ASP.NET MVC3 application, and the OpenCover documentation doesn’t specify how to attach ASP.NET or whether it is even possible, but it is pretty clear it requires an executable to attach to. Note also I am using NUnit 2.6.1 in case that matters.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T03:11:03+00:00Added an answer on June 10, 2026 at 3:11 am

    You can import NUnit xml report using ‘Build Feature’ as showed on screen shot below:
    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I set views programmatically. Here is how I do that. Let's say I have
Set objNetwork = CreateObject(WScript.Network) objNetwork.AddWindowsPrinterConnection \my_server_namemy_printer_name hello all, i used the script written above
set JAVA_OPTS=-Xms256m -Xmx512m -Djava.awt.headless=true -XX:MaxPermSize=256m -server This argument works in run.bat of jboss but
SET NOCOUNT ON stops the message that shows the count of the number of
Set up: I have a grails project in IntelliJ Idea. I run the application
Set Success page redirection in google checkout ? i have already set callback URL
Set up and Explanation : I'm working on a project for school, and have
I set up 404 handler page in web.config, but it works ONLY when extension
Set up: I have a mainPanel with a tabbedPane on it, i have a
My Set-up: I have two tables: tblAuthors and tblBooks. tblAuthors includes a list authors:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.