Первые тесты
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import java.util.Properties
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
@@ -5,6 +7,13 @@ plugins {
|
||||
alias(libs.plugins.ksp)
|
||||
}
|
||||
|
||||
val localProps = Properties().apply {
|
||||
val file = rootProject.file("local.properties")
|
||||
if (file.exists()) {
|
||||
file.inputStream().use { load(it) }
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.github.nullptroma.wallenc.app"
|
||||
compileSdk = 37
|
||||
@@ -17,6 +26,12 @@ android {
|
||||
versionName = "1.0"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
testInstrumentationRunnerArguments["yandex.oauth.token"] =
|
||||
localProps.getProperty("yandex.test.oauth.token").orEmpty()
|
||||
testInstrumentationRunnerArguments["yandex.user.id"] =
|
||||
localProps.getProperty("yandex.test.user.id").orEmpty()
|
||||
testInstrumentationRunnerArguments["yandex.vault.uuid"] =
|
||||
localProps.getProperty("yandex.test.vault.uuid").orEmpty()
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
}
|
||||
@@ -78,6 +93,14 @@ dependencies {
|
||||
testImplementation(libs.junit)
|
||||
androidTestImplementation(libs.androidx.junit)
|
||||
androidTestImplementation(libs.androidx.espresso.core)
|
||||
androidTestImplementation(libs.kotlinx.coroutines.test)
|
||||
androidTestImplementation(libs.room.testing)
|
||||
androidTestImplementation(platform(libs.androidx.compose.bom))
|
||||
androidTestImplementation(libs.okhttp3)
|
||||
androidTestImplementation(libs.retrofit)
|
||||
androidTestImplementation(libs.retrofit.converter.jackson)
|
||||
androidTestImplementation(libs.jackson.module.kotlin)
|
||||
androidTestImplementation(libs.jackson.datatype.jsr310)
|
||||
|
||||
implementation(project(":domain"))
|
||||
implementation(project(":usecases"))
|
||||
|
||||
Reference in New Issue
Block a user