Last active
June 25, 2019 04:14
-
-
Save eric100lin/3fd0741a598b32424fe490721a9a7e7a to your computer and use it in GitHub Desktop.
Android Gradle Plugin 3.4.1 with Gradle 5.1.1 connectedAndroidTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Gradle 5.1.1 https:/services.gradle.org/distributions/gradle-5.1.1-all.zip | |
REM Android Gradle Plugin 'com.android.tools.build:gradle:3.4.1' | |
REM 1. Gradle 5.1.1 change project property command options | |
REM need to use '-P KEY=VALUE' or '--project-prop KEY=VALUE' instead of '-PKEY=VALUE' | |
REM Android Gradle Plugin DSL: https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.ProductFlavor.html#com.android.build.gradle.internal.dsl.ProductFlavor:testInstrumentationRunnerArguments | |
REM 2. Use 'notClass' to skip test cases OR use 'class' to run specific test cases | |
REM 3. The 'tee' command exist in Windows PowerShell | |
powershell ".\gradlew.bat --info --continue \ | |
--project-prop android.testInstrumentationRunnerArguments.notClass=com.example.myapplication#useAppContext \ | |
connectedAndroidTest 2>&1 | tee log.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment