Browse Source

scripts/testUIKit (#2464)

pull/2157/merge
dima.avdeev 2 years ago committed by GitHub
parent
commit
2027e4bddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      compose/README.md
  2. 8
      compose/build.gradle.kts
  3. 7
      compose/scripts/testUIKit

5
compose/README.md

@ -49,6 +49,11 @@ Run tests for Web:
./scripts/testWeb ./scripts/testWeb
``` ```
Run tests for UIKit:
```bash
./scripts/testUIKit
```
Run tests for Android: Run tests for Android:
```bash ```bash
./scripts/testAndroidUnit.sh ./scripts/testAndroidUnit.sh

8
compose/build.gradle.kts

@ -114,6 +114,14 @@ tasks.register("testComposeJbWeb") {
dependsOnComposeTask(":compose:runtime:runtime:test") 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") { tasks.register("buildNativeDemo") {
dependsOnComposeTask(":compose:native:demo:assemble") dependsOnComposeTask(":compose:native:demo:assemble")
} }

7
compose/scripts/testUIKit

@ -0,0 +1,7 @@
#!/bin/bash
cd "$(dirname "$0")"
pushd ..
./gradlew testUIKit $COMPOSE_DEFAULT_GRADLE_ARGS "$@" || exit 1
popd
Loading…
Cancel
Save