icon

Xamarin iOS Test

Xamarin iOS Test

⚠️   The Xamarin development platform is not officially supported. [More info](https://blog.bitrise.io/post/xamarin-support-ends-in-2022-on-bitrise)

Xamarin iOS Test

Use solution configuration-platform combination for automatig tests, which maps to an ios project configuration-platform combination, which:

  • Starts the Xamarin Test Cloud Agent in your AppDelegate
  • Builds for Simulator platform

Initialize you ios app in your UITest project as follows:

iOSAppConfigurator iosConfigurator = ConfigureApp.iOS;

string appBundlePath = Environment.GetEnvironmentVariable("APP_BUNDLE_PATH");
if (!string.IsNullOrEmpty(appBundlePath))
{
  iosConfigurator.AppBundle(appBundlePath);
}

string simulatorUDID = Environment.GetEnvironmentVariable("IOS_SIMULATOR_UDID");
if (!string.IsNullOrEmpty(simulatorUDID))
{
  iosConfigurator.DeviceIdentifier(simulatorUDID);
}

return iosConfigurator.StartApp();

Similar steps

Calabash iOS UI test step

Runs your project's pre-defined Xcode tests on every build.

Execute XCUITests on Browserstack Platform with retry logic

This Step is used to search for test results and export them for the Deploy to Bitrise.io Step which can export the results to the Test Reports.