9 Comments

  1. Really nice tutorial!!!

    Easy to understand with straightforward explanations.

    I liked the trick of running a docker image for Sonar server.

    Kudos to Moi

  2. Neat! It’s cool to have this way of checking your code quality even if you don’t have a full CI system in place.
    One question, are you using GitHub to host your code? In that case, perhaps you should consider using of the GitHub available integrations (such as Travis CI, Coveralis).

    They support the Jacoco plugin as well (not so sure about Sonar, that’s yet another task in my TODO stack).

    Finally, regarding testing in Spring Boot I think that Unit Testing lost a bit of usefulness against integration tests.
    Currently, there is a lot of “magic” in Spring Boot (JPA repositories, rest interfaces) so the rest of the code is pretty much POJOs and interfaces (that don’t give you much with Unit Tests).

    I’m currently exploring things like this http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/test/web/client/MockRestServiceServer.html
    which greatly eases the Integration Tests without the need of having “live” servers to interact with.

    Cheers,
    Victor

    1. Author

      Thanks Víctor! Really cool stuff the MockRestServiceServer. Completely agree, coverage should focus in really important things, not just passing through all the code including simple POJOs.
      I had configured Travis in my GitHub repo (really useful), but never heard about Coveralis. Will have a look since I was looking for a cloud version of Sonar without success.
      Cheers!

  3. Hi, I’m new to SomarQube and I really struggle to make it work. I cloned your project from Github and I tried to run it with my local SonarQube 5.6.5. And I always have the following error:

    [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project code-quality-game: Unable to load component class org.sonar.java.SonarComponents: org/springsource/loaded/ri/ReflectiveInterceptor: org.springsource.loaded.ri.ReflectiveInterceptor -> [Help 1]

    Do you have any idea why?

    Thanks
    Ben

  4. do u have the problem with multiple maven modules?

    1. Author

      Hi jason, which problem do you mean? Didn’t experience any issue with maven so far.

Leave a Reply