Skip to content

Commit

Permalink
Clear db before each instrumentation test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivnsch committed Jul 10, 2020
1 parent ff46578 commit 040155e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android/core/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ android {
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments clearPackageData: 'true'
consumerProguardFiles 'consumer-rules.pro'
}

testOptions {
execution 'androidx_test_orchestrator'
}

buildTypes {
release {
minifyEnabled false
Expand All @@ -42,6 +47,7 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestUtil 'androidx.test:orchestrator:1.2.0'

androidTestImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.0'

Expand Down

0 comments on commit 040155e

Please sign in to comment.