jaredsburrows / android-gradle-java-multi-module-template

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:Apache License 2.0


Languages

Language:Java 100.0%