This demonstrates running source analysis tools(PMD, Findbugs, Checkstyle, Lint and Jacoco) on multi module build with an Android app module, Android library module and a Java module.
This project builds with Gradle and the Android Build tools.
Build the APK:
$ gradlew assembleDebug
Install the APK:
$ gradlew installDebug
Run the App:
$ gradlew runDebug
Run Junit the Unit Tests per module(debug + release):
$ gradlew test
Run Junit the Unit Tests for android-app
and android-library
modules:
$ gradlew testDebug
Run Espresso instrumentation tests for android-app
and android-library
modules:
$ gradlew connectedDebugAndroidTest
Generate PMD Report per module:
$ gradlew pmd
Generate JacocoReport Test Coverage Report per module:
$ gradlew jacocoReport
Generate FindBugs Report per module:
$ gradlew findBugs
Generate Checkstyle Report per module:
$ gradlew checkstyle
Generate Lint Report for android-app
and android-library
modules:
$ gradlew lintDebug