问题
I'm trying to use SonarSource for my Android project development for which I followed the steps provided here to installing Sonar Eclipse plug-in, when I try to associate my android project with Sonar it asks for groupId and artifactId, I have no idea about these two and after some surfing it seems that groupId is nothing but my project package(but not sure), and for artifactId I gave my project name, after selecting the desired sonar server and clicking on finish button I'm getting unknowm error occurred at top left corner of Associate with Sonar window. So can someone guide me how to use SonarSource for Android project or share a link for the same.
Thanks.
回答1:
If people are interested by this thread. We recently pushed a GitHub project that combines many testing technologies together for the Android platform and emphasizes on Sonar integration.
We combined (and the list is not exhaustive) :
- robolectric
- standard junit tests
- robotium
- ui automator
- code coverage using emma, cobertura and jacoco offline
- mocking frameworks like easy mock and mockito
- etc.
And, for most of them, we propose a solution to display this all in Sonar.
回答2:
You need first to have analysed your project successfully on a Sonar server prior to being able to associate it in Eclipse with Sonar Eclipse.
See http://docs.codehaus.org/display/SONAR/Sonar+Eclipse
回答3:
To anyone who looking for the same, here is what I do to make it work. I simply followed this link and written ant build for my project and made the configuration in the file and deployed my code in Sonar and everything works fine. But for your information its not Android specific its just POJO specific.
来源:https://stackoverflow.com/questions/10169716/sonarsource-for-android-project-in-eclipse