Not seeing any test visits from WCF calls

Not seeing any test visits from WCF calls

Hello, I have an application that consists of a few business logic DLLs and then a WCF service. Some of my unit tests go straight to the DLLs, some go to the WCF service, which in turn calls down to the DLLs. The issue I'm seeing is that NCover works just fine for the unit tests that directly reference those DLLs. However, I'm not seeing any coverage data whatsoever for the tests that go through WCF. When I drill into one of the classes in my business logic DLLs, I don't see any visits coming from the WCF service even though I know for a fact that the unit tests via WCF are hitting that class.

Am I missing something here? Anybody else run into this one? If it helps, the service is hosted locally using IIS. Thanks,

Cody


RE: Not seeing any test visits from WCF calls

You have to profile the wcf service and the application. If WCF is running within IIS, you will need to profile that as a seperate instance of NCover.

Once you perform your tests, you will then need to merge your coverage files to obtain the results you are looking for.

Joe