Measuring Code Coverage for Xamarin.Android Projects

Hi everyone,

perhaps somebody could give me a hint:

We are developing an App where we have to measure code coverage for our unit tests. One part of the unit tests are pure C# code where we use Open Cover and Report Generator do produce our code coverage reports, but we also have parts, which are dependent do Views, Context, etc. How can i test does and generate an report.

Currently we use the NUnit Android Runner Project to test them on device. We already get the NUnit report but we need to get the code coverage.

So basically my question is if there is a way to get the code coverage for On-Device Unit Tests or if there is a way to mock all Android Run-time specific parts to run the tests on a normal workstation. An working example would be great.

With best regards

Sign In or Register to comment.