Skip to content

Commit

Permalink
Cloud doc update (#810)
Browse files Browse the repository at this point in the history
cloud doc update
  • Loading branch information
matzuk authored Jun 27, 2023
1 parent e55b0f0 commit e67cac1
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions docs/docs/cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Token creation and management are available at [the Tokens page](https://cloud.m
Marathon Cloud supports tests written with **XCTest and XCUITest frameworks**.
Both the application and the tests must be built for the **ARM architecture**.

Before initiating the testing process for your iOS application, you’ll need to create two `.app` bundles: one for the application that's being tested (`.ipa` format for application is supported too), and another for the tests themselves. Typically, `debug` variants are utilized for this purpose.
Before initiating the testing process for your iOS application, you’ll need to create two `.app` bundles: one for the application that's being tested, and another for the tests themselves. Typically, `debug` variants are utilized for this purpose.

Let's say our project is called "Sample". The code snippet below shows how to build the .app bundle:

Expand All @@ -56,7 +56,7 @@ Note the relative paths of applications, as they will be required for running th
- Application: `/home/john/sample/build/Build/Products/Debug-iphonesimulator/sample.app`
- Test APK: `/home/john/sample/build/Build/Products/Debug-iphonesimulator/sampleUITests-Runner.app`

One important thing to note is that `*.app` files are actually folders in disguise. To transfer them, it's necessary to convert these bundles into standard zip archives:
One important thing to note is that `*.app` files are actually folders in disguise. To transfer them, it's necessary to convert these bundles into `.ipa` format or standard `zip` archives:

```shell
# file structure
Expand All @@ -69,6 +69,7 @@ One important thing to note is that `*.app` files are actually folders in disgui
# ...
# |--sample.xcodeproj
cd build/Build/Products/Debug-iphonesimulator
# convert to zip archive in this example
zip -r sample.zip sample.app
zip -r sampleUITests-Runner.zip sampleUITests-runner.app
```
Expand Down Expand Up @@ -142,19 +143,21 @@ Now you can start running your tests. Use the following command to execute the C

```shell
marathon-cloud \
-api_key api_key \
-apk sample.zip \
-testapk sampleUITests-Runner.zip
-api-key api_key \
-app sample.zip \
-testapp sampleUITests-Runner.zip \
-platform iOS
```

</TabItem>
<TabItem value="Android" label="Android">

```shell
marathon-cloud \
-api_key api_key \
-apk app.apk \
-testapk appTest.apk
-api-key api_key \
-app app.apk \
-testapk appTest.apk \
-platform Android
```

</TabItem>
Expand Down

0 comments on commit e67cac1

Please sign in to comment.