How to run unit tests for Xamarin library projects (iOS and Android)?

I am creating a component for the Xamarin Component Store by providing a library for Android and iOS. I put NUnit tests in both library projects, but I cannot run unit tests. Can I run tests in an Android / iOS library project?

+4
source share
1 answer

If you create the PCL library, you can create a NUnit project that references the PCL and runs your tests this way: http://cl.ly/image/0V2D453H3R3S

Xamarin also provides a NUnitLite tester for iOS: http://docs.xamarin.com/guides/ios/deployment,_testing,_and_metrics/touch.unit

With the latest version of Xamarin Studio, you can also create an Android Unit Test project: http://cl.ly/image/0817251h0H0x

+7
source

Source: https://habr.com/ru/post/1496442/


All Articles