diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 44c3f89979..ee593b9080 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -39,6 +39,8 @@ test_junitext = "1.1.3" test_barista = "4.2.0" test_hamcrest = "2.2" test_orchestrator = "1.4.1" +test_paparazzi = "1.0.0" +test_parameter_injector = "1.8" #other coil = "2.2.1" @@ -113,6 +115,7 @@ test_mockk = { module = "io.mockk:mockk", version.ref = "test_mockk" } test_barista = { module = "com.adevinta.android:barista", version.ref = "test_barista" } test_hamcrest = { module = "org.hamcrest:hamcrest", version.ref = "test_hamcrest" } test_orchestrator = { module = "androidx.test:orchestrator", version.ref = "test_orchestrator" } +test_parameter_injector = { module = "com.google.testparameterinjector:test-parameter-injector", version.ref = "test_parameter_injector" } # Others coil = { module = "io.coil-kt:coil", version.ref = "coil" } @@ -153,3 +156,4 @@ dependencygraph = { id = "com.savvasdalkitsis.module-dependency-graph", version. dependencycheck = { id = "org.owasp.dependencycheck", version.ref = "dependencycheck" } stem = { id = "com.likethesalad.stem", version.ref = "stem" } stemlibrary = { id = "com.likethesalad.stem-library", version.ref = "stem" } +paparazzi = { id = "app.cash.paparazzi", version.ref = "test_paparazzi" } diff --git a/tests/uitests/build.gradle.kts b/tests/uitests/build.gradle.kts index d82e5f8b01..01b9347a5a 100644 --- a/tests/uitests/build.gradle.kts +++ b/tests/uitests/build.gradle.kts @@ -17,11 +17,12 @@ import extension.allFeatures import extension.allLibraries +// TODO: Remove once https://youtrack.jetbrains.com/issue/KTIJ-19369 is fixed +@Suppress("DSL_SCOPE_VIOLATION") plugins { id("io.element.android-compose-library") alias(libs.plugins.ksp) - // TODO Create alias - id("app.cash.paparazzi") version "1.0.0" + alias(libs.plugins.paparazzi) } android { @@ -30,13 +31,11 @@ android { dependencies { testImplementation(libs.test.junit) + testImplementation(libs.test.parameter.injector) androidTestImplementation(libs.test.junitext) ksp(libs.showkase.processor) kspTest(libs.showkase.processor) - // TODO Move to libs - testImplementation("com.airbnb.android:showkase-screenshot-testing:1.0.0-beta14") - testImplementation("com.google.testparameterinjector:test-parameter-injector:1.8") implementation(project(":libraries:designsystem"))