Skip to content

Commit

Permalink
Introduce build flag for configuring test build type.
Browse files Browse the repository at this point in the history
  • Loading branch information
pocmo committed Nov 30, 2020
1 parent 0a419ef commit 23edda5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ import static org.gradle.api.tasks.testing.TestResult.ResultType

android {
compileSdkVersion Config.compileSdkVersion

if (project.hasProperty("testBuildType")) {
// Allowing to configure the test build type via command line flag (./gradlew -PtestBuildType=beta ..)
// in order to run UI tests against other build variants than debug in automation.
testBuildType project.property("testBuildType")
}

defaultConfig {
applicationId "org.mozilla"
minSdkVersion Config.minSdkVersion
Expand Down

0 comments on commit 23edda5

Please sign in to comment.