mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Run Instrumentation tests and generates unified code coverage (#4828)
* Run instrumentation tests on CI and generate unified coverage report * Fix ci * Fix failing tests and use mac machine for HAXM * Fix failing tests * Fix coverage failure * Try with ubuntu latest * Change API level to 23 * Fix Failing Test * Add prod APK generator workflow back
This commit is contained in:
parent
c6fda6dadb
commit
9205f37605
16 changed files with 98 additions and 25 deletions
|
|
@ -169,9 +169,8 @@ android {
|
|||
|
||||
multiDexEnabled true
|
||||
|
||||
testOptions {
|
||||
execution 'ANDROIDX_TEST_ORCHESTRATOR'
|
||||
}
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
vectorDrawables.useSupportLibrary = true
|
||||
}
|
||||
|
||||
|
|
@ -181,6 +180,8 @@ android {
|
|||
}
|
||||
|
||||
testOptions {
|
||||
animationsDisabled true
|
||||
|
||||
unitTests.returnDefaultValues = true
|
||||
unitTests.includeAndroidResources = true
|
||||
|
||||
|
|
@ -213,7 +214,7 @@ android {
|
|||
}
|
||||
debug {
|
||||
minifyEnabled false
|
||||
testCoverageEnabled project.hasProperty('coverage')
|
||||
testCoverageEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
||||
testProguardFile 'test-proguard-rules.txt'
|
||||
versionNameSuffix "-debug-" + getBranchName()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue