android-gradle-java-multi-module-template icon indicating copy to clipboard operation
android-gradle-java-multi-module-template copied to clipboard

Static analysis tools: PMD, Findbugs, Checkstyle, Lint and Jacoco on multi module build with an Android app module, Android library module and a Java module

Android Gradle Java Multi Module Template

License TravisCI Build Coveralls Coverage Twitter Follow

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.

Building and Running

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

Testing

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

Reports

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