question

DavideAloia-3417 avatar image
0 Votes"
DavideAloia-3417 asked DavideAloia-3417 commented

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

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.

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have not heard from you for a couple of days. Please let me know if there is anything that I can help here.

0 Votes 0 ·

1 Answer

YonglunLiu-MSFT avatar image
0 Votes"
YonglunLiu-MSFT answered DavideAloia-3417 commented

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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
So how do we run the tests from the command line?
Let me explain: if I create a generic project for PCL NUnit Test Project it works correctly, because just run the command "dotnet test ..." which also generates a report that I can use for continuos integration.
But it is not clear to me how to do it for iOS Unit Test Project and Android Unit Test Project.
Our goal is to execute the tests at each merge request, so we need an output report.

Best regards,

Davide A.






0 Votes 0 ·