Skip to content
This repository has been archived by the owner on Nov 13, 2019. It is now read-only.

Android codecov問題 #2

Open
ych861031 opened this issue Jan 2, 2018 · 1 comment
Open

Android codecov問題 #2

ych861031 opened this issue Jan 2, 2018 · 1 comment

Comments

@ych861031
Copy link

ych861031 commented Jan 2, 2018

Android travis ci 已經可以成功執行,但codecov並沒有執行,我去查了一下,後來按照 https://github.com/codecov/example-android 的方法修改
我在travis.yml script增加:

  • ./gradlew build jacocoTestReport assembleAndroidTest
  • ./gradlew connectedCheck

並在 build.gradle 增加:
android {
buildTypes {
debug {
testCoverageEnabled true
}
}
}

push之後,執行到這個部分就會出錯.
我的測試project: https://github.com/ych861031/BaseProject

@jyhsu2000
Copy link
Contributor

根據你貼的第一個連結中的說明
在觸發jacocoTestReport任務前
必須先確實在專案內安裝jacoco-android-gradle-plugin
不然會因為找不到該任務而直接失敗
進而出現測試報告中的

Task 'jacocoTestReport' not found in root project 'BaseProject'.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants