문제

We've got automated coverage builds, but they only give us numbers for our unit tests. We've also got a bunch of system tests.

This leaves us with two problems: some code looks uncovered even though it's used in the system tests (WCF endpoints, DB access, etc.); and some code looks covered even though it's only used by the unit tests.

How do I set up NCover (running on a build server) to get coverage numbers from that process (a service) while running these unit tests? All of the processes are on the same box.

In fact, we have two services talking to each other, and both communicate with an ASP.NET MVC app and an IIS-hosted WCF service; so it's actually multiple processes.

(.NET 4.0, x64. Using NUnit and MSpec. CI server is TeamCity.)

도움이 되었습니까?

해결책

Just to clarify, are over there and over here on the same build server?

If so, I assume the basic issue is how to cover multiple services (sorry If I've oversimplified).

If that's true, unfortunately, NCover 3 can't profile more than one service at a time. However, you can cover each service individually (sequentially, not simultaneously) and then merge the coverage files.

I realize this means running NCover a couple of times in your build script, but from a coverage perspective, that's how it would work.

Does this help?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top