test:
  override:
    - ./gradlew test assembleDebug --stacktrace
    - cp -r app/build/outputs $CIRCLE_ARTIFACTS

test:
  override:
    - ./gradlew test assembleDebug --stacktrace
  post:
    - cp -r app/build/outputs $CIRCLE_ARTIFACTS
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex "app/build/test-results/*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;

Copy junit test results to test reports folder
Copy junit test results to test reports folder