diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 209e0ea..c107df1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -20,7 +20,6 @@ diff --git a/app/src/test/java/com/runicgateway/app/ScaffoldSanityTest.kt b/app/src/test/java/com/runicgateway/app/ScaffoldSanityTest.kt index 0210009..9a49730 100644 --- a/app/src/test/java/com/runicgateway/app/ScaffoldSanityTest.kt +++ b/app/src/test/java/com/runicgateway/app/ScaffoldSanityTest.kt @@ -10,6 +10,9 @@ import org.junit.Test /** * Placeholder JVM unit test so the `test` CI gate has something to run in M0. * Real repository / view-model tests arrive with the functional pass (M1+). + * + * Assertions must be variant-agnostic: the `test` task runs both the debug and + * release unit-test variants, so nothing here may depend on `BuildConfig.DEBUG`. */ class ScaffoldSanityTest { @Test @@ -18,8 +21,7 @@ class ScaffoldSanityTest { } @Test - fun buildConfigIsDebuggableInTest() { - // Unit tests run against the debug variant. - assertTrue(BuildConfig.DEBUG) + fun versionNameIsSet() { + assertTrue(BuildConfig.VERSION_NAME.isNotBlank()) } }