Coder Social home page Coder Social logo

kotomj / image-analyzer-android Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 13.35 MB

Sample project to show how present code coverage of tests on multi-module Android project written in Kotlin.

License: Apache License 2.0

Kotlin 93.67% Java 4.55% Shell 1.78%

image-analyzer-android's Introduction

image-analyzer-android

Sample project to show how compute code coverage of tests on multi-module Android project written in Kotlin.

App it self contains several business modules to provide Google MLKit functionality.

Branch Status on CircleCI Status on TravisCI Code coverage
develop CircleCI Build Status codecov

Android MeetUp presentation

Look at slides from my talk on Android meetup:
STRV

Code Schema

Codebase is written using STRV code schema.

Preferences -> Editor -> Codestyle -> Kotlin -> extras/code-schema/strv.xml

Run application from source

Open source in Android Studio 3.3 Canary 13 (or newer)

Use mockDebug Build Variant.

Use MOCK flavour to run application without need to register app to fabric.
Use DEBUG variant to run application without need to configure app signing.

Run Code Coverage locally

Run sh jacoco.sh in the root of project. If you run it on MacOs it will open Chrome and display generated HTMLs.

Otherwise you will find html files in build directories:
./module-core/build/reports/jacocoUnitTestReport/html/index.html
./module-face-detection/build/reports/jacocoUnitTestReport/html/index.html
./module-text-recognition/build/reports/jacocoUnitTestReport/html/index.html
./mobile/build/reports/jacocoUnitTestReport/html/index.html

UI TEST COVERAGE still in progress

I have been working on adding UI testing for isolated fragments.
Then I would like to connect code coverage also for that UI tests.
Every work in progress is available in feature branches.

Special thanks to sources

Multi module navigation with the Android Architec¬ture component

image-analyzer-android's People

Contributors

kotomj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mkovalyk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.