Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to run android tests on simulator #2680

Merged
merged 24 commits into from
Oct 19, 2021
Merged

Try to run android tests on simulator #2680

merged 24 commits into from
Oct 19, 2021

Conversation

nirinchev
Copy link
Member

@nirinchev nirinchev commented Oct 15, 2021

Description

Rather than wait for a proper device farm action, this just executes android tests on the emulator on macOS. It's not ideal, but will allow us to nuke the jenkins build which has been unstable for a while.

In addition, this PR does the following:

  • Changes how arguments are getting passed to tests. Previously we would expect the argument and the value to be passed separately - i.e. --foo bar, whereas now we're expecting them to be passed with = to be consistent with the NUnit format.
  • The test result argument was --resultpath and --result on different platforms. It's now --result everywhere.
  • Bumps NUnit version to 3.13.2 (latest). This was required because older NUnit versions were shipping debug symbols in a now-deprecated format.
  • Moved SplitArguments to TestHelpers from UWPTestHelpers because it's now used on Android as well.
  • Android's MainActivity now expects arguments to be passed as a single string and splits them. It also handles correctly the BaaS arguments now.
  • Bump Android tests target version to 29.
  • Android instrumentation tests are now going to read arguments from *external storage*/RealmTests/testargs.txt if it exists.
  • Streamlined the Xamarin.macOS test runner a little.

Fixes #2288

TODO

  • Changelog entry

@cla-bot cla-bot bot added the cla: yes label Oct 15, 2021
@nirinchev nirinchev self-assigned this Oct 18, 2021
@nirinchev nirinchev marked this pull request as ready for review October 18, 2021 08:44
@nirinchev nirinchev merged commit 611ec59 into master Oct 19, 2021
@nirinchev nirinchev deleted the ni/android-tests branch October 19, 2021 00:02
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run tests for Xamarin.Android on CI
2 participants