This repository was archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tis needs to be added to the CI yaml, but that should probably be done in a separate PR. |
I wonder if the build of the project that we have in the other cake script should be used.. |
That can be done too. You can pass in the app package instead of the project |
643b2f7
to
e6f62c2
Compare
e6f62c2
to
564d05b
Compare
rmarinho
reviewed
Feb 10, 2021
...n.Platform.Handlers.DeviceTests.Android/Xamarin.Platform.Handlers.DeviceTests.Android.csproj
Show resolved
Hide resolved
PureWeen
approved these changes
Feb 10, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
This PR adds the bits required to run the device tests - either from the terminal or on CI.
I am splitting each platform into separate cake files so that the arguments can be focused and easy to use. For example, the simplest case to run tests would be:
For example:
There is also a way just to run an output app file without building the project, then use the
--app
argument:For example:
There is either a way to do everything and build and run in one go, or you can decide:
--target=test
(default) - build and test--target=build
- just build and not run--target=test --exclusive
- just test and not runIn addition to what to do, you can specify more accurate paths:
--project=<path-to-csproj>
- the path to the platform .csproj file (required)--binlog=<path-to-binlog>
- the path to store the binlog file of the build (default: xxx.csproj.binlog)--app=<pth-to-apk-or-app>
- the path to the .app folder o the .apk file (default: the first app/apk in the bin directory)--results=<path-to-results-dir>
- the path to a directory that will hold all the test results and device logs (default: xxx.app-results)--device=<device-combo>
- the target ID of the device used by xharness in the form<platform>-<device|simulator|emulator>[-<32|64>][_<ios-version|android-api>]
eg: ios-simulator-64_13.4,android-emulator-32_30,[...]
--package=<android-package-name>
- the Android app package name found in the manifest--instrumentation=<android-instrumentation-name>
- the Android instrumentation nameIssues Resolved
API Changes
None
Platforms Affected
None
Behavioral/Visual Changes
None
Before/After Screenshots
Not applicable
Testing Procedure
The cake files can just be run using either the default args or any set of valid, custom args. This should not require any other work - except maybe to install the emulators using the SDK manager. They are created, started and deleted after each run.
PR Checklist