views:

97

answers:

2

We use Xunit.net as our unit test framework for use on our .NET4 assemblies. We have it integrated into our TFS 2010 team builds quite successfully.

I now want to add code coverage to the nightly builds as well.

Does anyone have a list of coverage tools that work on 4.0 assemblies and could be integrated into our automated builds?

A: 

Have you checked out Visual Studio's code coverage?

Andrew Hare
Afaik VS coverage only works with MSTest unit tests and would not work with Xunit.net.
Tim Duncan
Andrew, after your comment I was prompted into looking at Generic Tests in VS2010 (http://msdn.microsoft.com/en-us/library/dd286732.aspx) and it may offer some hope. I would still like to hear if anyone has a list of other 4.0 coverage tools.
Tim Duncan
I have spent some time on it and there doesn't _seem_ to be a way to have a Generic Test in VS2010 have coverage results generated.
Tim Duncan
A: 

See the SD C# Test Coverage tool. It can be run completely from command line scripts. It will work with any unit testing framework you might have.

Ira Baxter