diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-22 07:05:16 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-22 07:05:16 +0000 |
| commit | 455206121f2061d5bc81b629da7978e1975845d9 (patch) | |
| tree | 731799738d312f87684112d7cf193b32484d48f5 /android-app/app/src/androidTest/kotlin | |
| parent | 15bd8aa2f46e6385b9a7fdd231eb2db74d7c81f4 (diff) | |
fix: resolve CI failures by adding JUnit vintage engine and skipping background permission check in tests
Diffstat (limited to 'android-app/app/src/androidTest/kotlin')
| -rw-r--r-- | android-app/app/src/androidTest/kotlin/org/terst/nav/MainActivitySmokeTest.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/android-app/app/src/androidTest/kotlin/org/terst/nav/MainActivitySmokeTest.kt b/android-app/app/src/androidTest/kotlin/org/terst/nav/MainActivitySmokeTest.kt index fec571a..0824abe 100644 --- a/android-app/app/src/androidTest/kotlin/org/terst/nav/MainActivitySmokeTest.kt +++ b/android-app/app/src/androidTest/kotlin/org/terst/nav/MainActivitySmokeTest.kt @@ -2,6 +2,7 @@ package org.terst.nav import androidx.test.core.app.ActivityScenario import androidx.test.ext.junit.runners.AndroidJUnit4 +import org.junit.Before import org.junit.Test import org.junit.runner.RunWith @@ -16,6 +17,11 @@ import org.junit.runner.RunWith @RunWith(AndroidJUnit4::class) class MainActivitySmokeTest { + @Before + fun setup() { + NavApplication.isTesting = true + } + @Test fun mainActivity_launches_withoutCrash() { ActivityScenario.launch(MainActivity::class.java).use { scenario -> |
