Skip to content

Commit

Permalink
Merge pull request #1048 from SimonMarquis/move-android-instrumented-…
Browse files Browse the repository at this point in the history
…test

Move Android instrumented test `ThemeTest` to unit test
  • Loading branch information
dturner committed May 13, 2024
2 parents 3141de0 + 7659925 commit ab8ddc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/designsystem/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ dependencies {
implementation(libs.coil.kt.compose)

testImplementation(libs.androidx.compose.ui.test)
testImplementation(libs.androidx.compose.ui.testManifest)

testImplementation(libs.hilt.android.testing)
testImplementation(libs.robolectric)
testImplementation(libs.roborazzi)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ import com.google.samples.apps.nowinandroid.core.designsystem.theme.NiaTheme
import com.google.samples.apps.nowinandroid.core.designsystem.theme.TintTheme
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import kotlin.test.assertEquals

/**
Expand All @@ -54,6 +56,7 @@ import kotlin.test.assertEquals
* [LocalBackgroundTheme] — have the expected values for a given theme mode, as specified by the
* design system.
*/
@RunWith(RobolectricTestRunner::class)
class ThemeTest {

@get:Rule
Expand Down

0 comments on commit ab8ddc3

Please sign in to comment.