xamarin.android & xamarin.ios (not forms) unit test integration

Davide Aloia 21 Reputation points
2022-09-15T14:29:06.947+00:00

Does anyone know if we have a way to run the xamarin.android or xamarin.ios unitests directly from ide visualstudio or if there is a way to launch it from the command line without where to interact with the simulator?

My goal is to integrate unit tests and run them through the CI at each merge request.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,966 Reputation points Microsoft Vendor
    2022-09-16T06:20:02.67+00:00

    Hello,

    if there is a way to launch it from the command line without where to interact with the simulator?

    No, there is no such way to do it, you could refer to Unit Testing Xamarin.iOS Apps, and android is the same as it.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful