Skip to content

Commit

Permalink
scripts/testUIKit (#2464)
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-avdeev-jb authored Nov 11, 2022
1 parent b58d335 commit 2027e4b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ Run tests for Web:
./scripts/testWeb
```

Run tests for UIKit:
```bash
./scripts/testUIKit
```

Run tests for Android:
```bash
./scripts/testAndroidUnit.sh
Expand Down
8 changes: 8 additions & 0 deletions compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ tasks.register("testComposeJbWeb") {
dependsOnComposeTask(":compose:runtime:runtime:test")
}

tasks.register("testUIKit") {
if (System.getProperty("os.arch") == "aarch64") {
dependsOnComposeTask(":compose:ui:ui:uikitSimArm64Test")
} else {
dependsOnComposeTask(":compose:ui:ui:uikitX64Test")
}
}

tasks.register("buildNativeDemo") {
dependsOnComposeTask(":compose:native:demo:assemble")
}
Expand Down
7 changes: 7 additions & 0 deletions compose/scripts/testUIKit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

cd "$(dirname "$0")"

pushd ..
./gradlew testUIKit $COMPOSE_DEFAULT_GRADLE_ARGS "$@" || exit 1
popd

0 comments on commit 2027e4b

Please sign in to comment.