Skip to content

Commit

Permalink
Try adding a manual action to run android emulator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Nov 5, 2023
1 parent 1728fd9 commit a1444d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ jobs:
- name: Build with Gradle
run: ./gradlew build
working-directory: android

- name: Run Android Tests
run: ./gradlew connectedAndroidTest
working-directory: android
1 change: 0 additions & 1 deletion android/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ dependencies {
cargoNdk {
module = "../common" // Directory containing Cargo.toml
librariesNames = ["libferrostar.so"]
verbose = true
}

android.libraryVariants.all { variant ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* FIXME: This file should move out of Android Tests ASAP.
* It only exists here because I haven't yet figured out how to build and link the platform-native
* binaries via JNI just yet and this works.
* See https://github.com/willir/cargo-ndk-android-gradle/issues/12.
*
* This solution is STUPIDLY INEFFICIENT and will probably contribute to global climate change since
* an Android emulator uses like two whole CPU cores when idling.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.stadiamaps.ferrostar", appContext.packageName)
assertEquals("com.stadiamaps.ferrostar.demo", appContext.packageName)
}
}

0 comments on commit a1444d9

Please sign in to comment.