I asked this from NCover support.
My question was:
Lets say I create a silverlight class
library (Project -> New Project...)
from Visual Studio. In this class
library I have several classes and I
use the NUnit silverlight template to
project which contains unit tests for
my silverlight class library:
http://weblogs.asp.net/nunitaddin/archive/2008/05/01/silverlight-nunit-projects.aspx
I am able to run unit tests just fine
(even in the build server, we are
using msbuild and TFS) but I cannot
get code coverage data for them using
the standard code coverage options
that are available in Visual Studio.
Can NCover show the code coverage for
my silverlight class libraries?
Response I got:
As long as you're testing the class libraries with NUnit, you should be able to cover
them using NCover. If you test them through a web browser using a tool like Selenium,
then you won't be able to get coverage.
Now I'm wonder if anyone in the silverlight team has tried to use NCover + NUnit? Of course MS has their own unit test framework so in the "business sense" it wouldn't look so good :) But how about just testing whether this works.
answered 2009-09-08T16:17:24.340