Skip to content

Commit b588e92

Browse files
committed
Unable to run tests here, because of the nature of native library, instrumented test (inside a full App project) is required.
Signed-off-by: Hui-Hong You <hiroshi@ghostsinthelab.org>
1 parent c201ac2 commit b588e92

5 files changed

Lines changed: 14 additions & 46 deletions

File tree

.idea/copyright/profiles_settings.xml

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deploymentTargetSelector.xml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ android {
6969
sourceCompatibility = JavaVersion.VERSION_17
7070
targetCompatibility = JavaVersion.VERSION_17
7171
}
72+
testOptions {
73+
unitTests {
74+
isIncludeAndroidResources = true
75+
}
76+
}
7277
kotlinOptions {
7378
jvmTarget = "17"
7479
}

app/src/test/java/com/miyabi_hiroshi/app/libchewing_android_app_module/ChewingTest.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,25 @@
1818

1919
package com.miyabi_hiroshi.app.libchewing_android_app_module
2020

21-
import org.junit.Assert.*
22-
2321
import org.junit.After
22+
import org.junit.Assert.assertEquals
2423
import org.junit.Before
24+
import org.junit.Test
2525
import org.junit.runner.RunWith
2626
import org.junit.runners.JUnit4
2727

28+
2829
@RunWith(JUnit4::class)
2930
class ChewingTest {
30-
3131
@Before
3232
fun setUp() {
3333
}
3434

35+
@Test
36+
fun addition_isCorrect() {
37+
assertEquals(4, 2 + 2)
38+
}
39+
3540
@After
3641
fun tearDown() {
3742
}

app/src/test/java/com/miyabi_hiroshi/app/libchewing_android_app_module/ExampleUnitTest.kt

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)