dependencies:
  pre:
    - echo y | android update sdk --no-ui --all --filter android-23,build-tools-23.0.1
    - echo y | android update sdk --no-ui --all --filter extra-google-m2repository,extra-android-m2repository
test:
  override:
    # start the emulator
    - emulator -avd circleci-android22 -no-audio -no-window:
        background: true
        parallel: true
    - circle-android wait-for-boot
    # run tests  against the emulator.
    - >-
      TERM=dumb
      ./gradlew
      connectedAndroidTest
      testDebug
      createDebugCoverageReport
      -PpreDexLibraries=false
    # copy the build outputs to artifacts
    - cp -r app/build/outputs $CIRCLE_ARTIFACTS
    - cp -r app/build/reports $CIRCLE_ARTIFACTS
    # copy the test results to the test results directory.
    - cp -r app/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORTS
    - cp -r app/build/test-results/* $CIRCLE_TEST_REPORTS

dependencies:
  pre:
    - echo y | android update sdk --no-ui --all --filter android-23,build-tools-23.0.1
    - echo y | android update sdk --no-ui --all --filter extra-google-m2repository,extra-android-m2repository
test:
  override:
    # start the emulator
    - emulator -avd circleci-android22 -no-audio -no-window:
        background: true
        parallel: true
    - circle-android wait-for-boot
    # run tests  against the emulator.
    - >-
      TERM=dumb
      ./gradlew
      connectedAndroidTest
      testDebug
      #createDebugCoverageReport -- coverage is broken at the moment
      assembleDebug
      -PpreDexLibraries=false
    # copy the build outputs to artifacts
    - cp -r app/build/outputs $CIRCLE_ARTIFACTS
    - cp -r app/build/reports $CIRCLE_ARTIFACTS
    # copy the test results to the test results directory.
    - cp -r app/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORTS
    - cp -r app/build/test-results/* $CIRCLE_TEST_REPORTS

Disable test coverage on Circle CI
Disable test coverage on Circle CI

It's not working as expected, at the moment.
