Skip to content

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

Notifications You must be signed in to change notification settings

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

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages