Closed tgsmith61591 closed 8 years ago
.travis.yml and the above part of build.gradle seem ok to me.
I looked at this build ( https://travis-ci.org/tgsmith61591/clust4j/builds/122092556 ) and ./gradlew cobertura coveralls
seems failing at :test
phase because of NoClassDefFoundError
s. (Try click $ ./gradlew cobertura coveralls
part of travis console log).
Maybe classpaths are different when you test with coverage and without coverage.
Ah, you're absolutely right. I didn't even catch that portion of the log. After doing some digging around, it looks like there is a well-known issue with Cobertura causing these, though they profess it should have stopped in 2.3... There are also a lot of unanswered questions about this on StackOverflow. I'll keep digging around; if you have any ideas, I'd really appreciate your guidance.
I recommend you should try JaCoCo plugin instead of cobertura if it's difficult to debug.
Thanks, I went with JaCoCo and per this usecase, just sent the results to codecov with curl
.
Hey, I used your coveralls wrapper on my java project and it worked seamlessly. Thank you so much! My question (and it's likely an extremely naive one...) is how to get the coverage badge? It seems like it didn't execute on coveralls.
Here is my repo. Here's what my .travis.yml file looks like:
And I have the following line at the head of my
build.gradle
:And yet, I'm still getting the
coverage | unknown
badge in myREADME
. Any thoughts?