Code Coverage for Web Service

Code Coverage for Web Service

Hi,

I want to get the code coverage for the web service hosted in IIS. How can I achieve this using NCover ? I want to use NUnit to write unit test cases for the web methods and at the same time want to use NCover to get the code coverage.

Thanks Santosh S


RE: Code Coverage for Web Service

You would need to start up ncover and use the //iis option.

From the command line you would use

ncover.console.exe nunit-console.exe testdll.dll //x d:\path\coverage.xml //iis

Once Nunit is complete running the unit tests, the data will be collected.

Hope this helps.

Joe