Generate test coverage with Jacoco and Circle CI fails
up vote
3
down vote
favorite
Am trying to generate a test coverage in the Circle CI with this file config.yml
, but the build fails and it says No connected devices.
Below is the error generated on Circle CI :
And according to what I read Circle CI doesn't support Emulators currently.
Below is my config.yml
file :
version: 2
jobs:
build:
working_directory: ~/ConvergeLevelApp
docker:
- image: circleci/android:api-25-alpha
environment:
JVM_OPTS: -Xmx3200m
CC_TEST_REPORTER_ID: 403xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ADB_INSTALL_TIMEOUT: 60
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Run Tests
command: ./gradlew lint test
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results
- run:
name: Generate JaCoCo report
command: ./gradlew jacocoTestReport
- run:
name: Upload coverage to code climate
command: |
export JACOCO_SOURCE_PATH=app/src/main/java
./cc-test-reporter format-coverage app/build/reports/coverage/debug/report.xml -t jacoco
./cc-test-reporter upload-coverage
java android jacoco circleci
This question had a bounty worth +50
reputation from Lutaaya Huzaifah Idris that ended 16 hours ago. Grace period ends in 7 hours
Looking for an answer drawing from credible and/or official sources.
add a comment |
up vote
3
down vote
favorite
Am trying to generate a test coverage in the Circle CI with this file config.yml
, but the build fails and it says No connected devices.
Below is the error generated on Circle CI :
And according to what I read Circle CI doesn't support Emulators currently.
Below is my config.yml
file :
version: 2
jobs:
build:
working_directory: ~/ConvergeLevelApp
docker:
- image: circleci/android:api-25-alpha
environment:
JVM_OPTS: -Xmx3200m
CC_TEST_REPORTER_ID: 403xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ADB_INSTALL_TIMEOUT: 60
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Run Tests
command: ./gradlew lint test
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results
- run:
name: Generate JaCoCo report
command: ./gradlew jacocoTestReport
- run:
name: Upload coverage to code climate
command: |
export JACOCO_SOURCE_PATH=app/src/main/java
./cc-test-reporter format-coverage app/build/reports/coverage/debug/report.xml -t jacoco
./cc-test-reporter upload-coverage
java android jacoco circleci
This question had a bounty worth +50
reputation from Lutaaya Huzaifah Idris that ended 16 hours ago. Grace period ends in 7 hours
Looking for an answer drawing from credible and/or official sources.
1
Can you run "adb devices" command and see it is showing device or not?
– jitesh mohite
Nov 19 at 4:11
How can I do that please @jiteshmohite?
– Lutaaya Huzaifah Idris
Nov 19 at 5:51
Please open terminal and type above-mentioned adb command.
– jitesh mohite
Nov 19 at 7:51
First make sure your device is connected with PC then all thing should work.
– Chetan Joshi
Nov 22 at 7:05
Actually locally jacoco works better and provides the test coverage well when my emulator is running, but it seems version of CIrcle CI no longer supports emulators to run.
– Lutaaya Huzaifah Idris
Nov 22 at 7:19
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
Am trying to generate a test coverage in the Circle CI with this file config.yml
, but the build fails and it says No connected devices.
Below is the error generated on Circle CI :
And according to what I read Circle CI doesn't support Emulators currently.
Below is my config.yml
file :
version: 2
jobs:
build:
working_directory: ~/ConvergeLevelApp
docker:
- image: circleci/android:api-25-alpha
environment:
JVM_OPTS: -Xmx3200m
CC_TEST_REPORTER_ID: 403xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ADB_INSTALL_TIMEOUT: 60
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Run Tests
command: ./gradlew lint test
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results
- run:
name: Generate JaCoCo report
command: ./gradlew jacocoTestReport
- run:
name: Upload coverage to code climate
command: |
export JACOCO_SOURCE_PATH=app/src/main/java
./cc-test-reporter format-coverage app/build/reports/coverage/debug/report.xml -t jacoco
./cc-test-reporter upload-coverage
java android jacoco circleci
Am trying to generate a test coverage in the Circle CI with this file config.yml
, but the build fails and it says No connected devices.
Below is the error generated on Circle CI :
And according to what I read Circle CI doesn't support Emulators currently.
Below is my config.yml
file :
version: 2
jobs:
build:
working_directory: ~/ConvergeLevelApp
docker:
- image: circleci/android:api-25-alpha
environment:
JVM_OPTS: -Xmx3200m
CC_TEST_REPORTER_ID: 403xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ADB_INSTALL_TIMEOUT: 60
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Run Tests
command: ./gradlew lint test
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results
- run:
name: Generate JaCoCo report
command: ./gradlew jacocoTestReport
- run:
name: Upload coverage to code climate
command: |
export JACOCO_SOURCE_PATH=app/src/main/java
./cc-test-reporter format-coverage app/build/reports/coverage/debug/report.xml -t jacoco
./cc-test-reporter upload-coverage
java android jacoco circleci
java android jacoco circleci
asked Nov 14 at 15:34
Lutaaya Huzaifah Idris
1,0242829
1,0242829
This question had a bounty worth +50
reputation from Lutaaya Huzaifah Idris that ended 16 hours ago. Grace period ends in 7 hours
Looking for an answer drawing from credible and/or official sources.
This question had a bounty worth +50
reputation from Lutaaya Huzaifah Idris that ended 16 hours ago. Grace period ends in 7 hours
Looking for an answer drawing from credible and/or official sources.
1
Can you run "adb devices" command and see it is showing device or not?
– jitesh mohite
Nov 19 at 4:11
How can I do that please @jiteshmohite?
– Lutaaya Huzaifah Idris
Nov 19 at 5:51
Please open terminal and type above-mentioned adb command.
– jitesh mohite
Nov 19 at 7:51
First make sure your device is connected with PC then all thing should work.
– Chetan Joshi
Nov 22 at 7:05
Actually locally jacoco works better and provides the test coverage well when my emulator is running, but it seems version of CIrcle CI no longer supports emulators to run.
– Lutaaya Huzaifah Idris
Nov 22 at 7:19
add a comment |
1
Can you run "adb devices" command and see it is showing device or not?
– jitesh mohite
Nov 19 at 4:11
How can I do that please @jiteshmohite?
– Lutaaya Huzaifah Idris
Nov 19 at 5:51
Please open terminal and type above-mentioned adb command.
– jitesh mohite
Nov 19 at 7:51
First make sure your device is connected with PC then all thing should work.
– Chetan Joshi
Nov 22 at 7:05
Actually locally jacoco works better and provides the test coverage well when my emulator is running, but it seems version of CIrcle CI no longer supports emulators to run.
– Lutaaya Huzaifah Idris
Nov 22 at 7:19
1
1
Can you run "adb devices" command and see it is showing device or not?
– jitesh mohite
Nov 19 at 4:11
Can you run "adb devices" command and see it is showing device or not?
– jitesh mohite
Nov 19 at 4:11
How can I do that please @jiteshmohite?
– Lutaaya Huzaifah Idris
Nov 19 at 5:51
How can I do that please @jiteshmohite?
– Lutaaya Huzaifah Idris
Nov 19 at 5:51
Please open terminal and type above-mentioned adb command.
– jitesh mohite
Nov 19 at 7:51
Please open terminal and type above-mentioned adb command.
– jitesh mohite
Nov 19 at 7:51
First make sure your device is connected with PC then all thing should work.
– Chetan Joshi
Nov 22 at 7:05
First make sure your device is connected with PC then all thing should work.
– Chetan Joshi
Nov 22 at 7:05
Actually locally jacoco works better and provides the test coverage well when my emulator is running, but it seems version of CIrcle CI no longer supports emulators to run.
– Lutaaya Huzaifah Idris
Nov 22 at 7:19
Actually locally jacoco works better and provides the test coverage well when my emulator is running, but it seems version of CIrcle CI no longer supports emulators to run.
– Lutaaya Huzaifah Idris
Nov 22 at 7:19
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
It's suggested to use Buddybuild for emulators over Circle CI
Buddybuild has been able to boot an emulator just fine, but the nature of my project doesn't work well with them. I'd suggest that if you aren't building a library, try buddybuild
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
It's suggested to use Buddybuild for emulators over Circle CI
Buddybuild has been able to boot an emulator just fine, but the nature of my project doesn't work well with them. I'd suggest that if you aren't building a library, try buddybuild
add a comment |
up vote
0
down vote
It's suggested to use Buddybuild for emulators over Circle CI
Buddybuild has been able to boot an emulator just fine, but the nature of my project doesn't work well with them. I'd suggest that if you aren't building a library, try buddybuild
add a comment |
up vote
0
down vote
up vote
0
down vote
It's suggested to use Buddybuild for emulators over Circle CI
Buddybuild has been able to boot an emulator just fine, but the nature of my project doesn't work well with them. I'd suggest that if you aren't building a library, try buddybuild
It's suggested to use Buddybuild for emulators over Circle CI
Buddybuild has been able to boot an emulator just fine, but the nature of my project doesn't work well with them. I'd suggest that if you aren't building a library, try buddybuild
answered yesterday
user7294900
18.5k93056
18.5k93056
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53303703%2fgenerate-test-coverage-with-jacoco-and-circle-ci-fails%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Can you run "adb devices" command and see it is showing device or not?
– jitesh mohite
Nov 19 at 4:11
How can I do that please @jiteshmohite?
– Lutaaya Huzaifah Idris
Nov 19 at 5:51
Please open terminal and type above-mentioned adb command.
– jitesh mohite
Nov 19 at 7:51
First make sure your device is connected with PC then all thing should work.
– Chetan Joshi
Nov 22 at 7:05
Actually locally jacoco works better and provides the test coverage well when my emulator is running, but it seems version of CIrcle CI no longer supports emulators to run.
– Lutaaya Huzaifah Idris
Nov 22 at 7:19