Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Does anyone know of a way to create Code Coverage reports for C#/.NET projects tested via Selenium?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

I was able to find the following article "Code Coverage of ASP.NET Applications on IIS" from the folks at NCover, not free, which supports IIS instrumentation and code coverage. This would enable you to run Selenium and gather coverage results.

That ASP.NET applications are fairly difficult to test may be the understatement of the century. In this article, we’re going to show you how to test ASP.NET applications with Selenium, and how to use NCover to review your test coverage.

While it is possible to get 100% coverage for your ASP.NET application using Selenium, we highly recommend that you develop your application in layers and test as many of those layers as possible with a unit testing framework such as NUnit, MSTest, or MbUnit.

share|improve this answer

OpenCover is also a possibility if you use iisexpress

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.