Prototype of running Xamarin.Android apk tests in Test Cloud.
On-device results from test cloud:
I/mono-stdout( 7147): Xamarin.Android.Bcl_Tests : 569002.202 ms
I/mono-stdout( 7147): Tests run: 20458, Passed: 20134, Failed: 2, Skipped: 322, Inconclusive: 0
See example NUnit results in examples
.
Thanks to @clancey for getting the initial prototype working.
make
- Builds xa-uitest.sln
- Builds xamarin-android
- Builds xamarin-android test APKs
make run-local
If you have an emulator open/device connected, this will run the BCL tests locally.
You will get two resulting files:
TestResult-Original.xml
- the original NUnit results from the xa-uitests projectTestResult-Final*.xml
- the on-device NUnit test results
make run-test-cloud TEST_CLOUD_KEY=1234 TEST_CLOUD_USER=youruser@something.com
The resulting files should be the same as if you ran locally, except the final file will have the name of the device.
TestCloudNUnit
is .NET Core project, and run viadotnet
. Perhaps an MSBuild task would be better.TestCloudNUnit
probably needs some cleanup. It printsHello World!
.- API changes in xamarin-android/Xamarin.Android.NUnitLite should be reviewed
- I did not add the required
[Export]
methods to all APK tests, or setup a way for xa-uitests to run against different APKs.