The tools I found for .Net coverage test only work on .Net Framework and .Net Core
I don’t know what’s the coverage test tools you have found, but the most mentioned coverage test tool are XR.Baboon 、SharpCover and dotCover.You can check them.
SharpCover is a C# code coverage tool with Linux (Mono) and Windows (.NET 4.0) support.https://github.com/gaillard/SharpCover
XR.Baboon is a project about code coverage. For recording and displaying the line-by-line coverage of CLR programs running with mono and and also now displaying coverage data for C/C++ applications built by gcc with –fcoverage. https://github.com/inorton/XR.Baboon
dotCover is a .NET unit testing and code coverage tool that works right in Visual Studio and in JetBrains Rider, helps you know to what extent your code is covered with unit tests, provides great ways to visualize code coverage, and is Continuous Integration ready. dotCover calculates and reports statement-level code coverage in applications targeting .NET Framework, Silverlight, and .NET Core.https://www.jetbrains.com/dotcover/features/
Of course , if you find better coverage test tool, please share with us . Thanks in advance.
Thanks for your information. As far as I know, 1. SharpCover can only do the coverage test for Windows and Linux application. 2. XR.Baboon can work on xamarin.mac, but not xamarin.iOS and xamarin.Android . 3. dotCover can support .net framework and .net core, but not xamarin.iOS and xamarin.Android.
Currently, I am using CodeRush. But the CodeRush has two issues.
1. When a test case is launched by CodeRush and the test case calls an Android API, it will crash
2. It does not support Xamarin.iOS
I will be very appreciated if you can introduce a coverage tool which can support Xamarin.Android and Xamarin.iOS
You can try NUnitLite which runs on Android and iOS and that provide a device specific UI to run those tests.
And Xamarin has templates that create a Unit Test App project for Android or iOS.
And there are alternatives to NUnitLite:xUnit.net Runners for DevicesNUnit test runners for Xamarin and mobile devices
For more details: https://stackoverflow.com/questions/42938447/xamarin-android-unit-tests-in-visual-studio-2017/42939217#42939217
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies