Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8616399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:36:38+00:00 2026-06-12T05:36:38+00:00

I have been digging quite a bit on Sonar best practices. The consensus seems

  • 0

I have been digging quite a bit on Sonar best practices. The consensus seems to be that Sonar would be launched only once a day or week, e.g. during the night. However, what if one uses a CI server such as Jenkins? Jenkins builds on every SVN commit, runs unit tests, deploys to staging environment, runs Selenium tests, etc. The way I understand it, all this additional information is lost if Sonar is launched only once a day/week. Most likely all the team’s code problems and failing tests have been resolved on in the afternoon or end of the week. Sonar runs probably on Sunday night or every night. The application is pre-built and tested, and then Sonar analysis is executed based on that information. Most likely all tests pass, no major code problems are left in the repository, and the QA team incorrectly believes that there are no problems since all Sonar reports display green. However, during the day/week it is possible that the project has been a total mess with broken builds etc., but is never displayed in Sonar reports 🙂

Am I missing something here, or should Sonar actually be executed upon every commit, or at least once an hour?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:36:39+00:00Added an answer on June 12, 2026 at 5:36 am

    It all dependes on your need and your team velocity to develop new code, test and integrate new functionalities into the project.

    If you have a sprint with a time box of a web, probably that on the weekend, the version that started on monday is stable, and therefore bug free, or only a few bugs. If your sprint time box is a week, i would higly recommend at least once a day, so you can get defects running unit tests and so on, giving a good reality on your project quality.

    I would recommend these practices:

    1. Using code coverage like Cobertura, running unit tests at least once a day;
    2. Using code analysis like PMD, checkstyle and so on. If possible, create your own rules that applies to your architecture, generating more value for your project in terms of quality.
    3. Considering your time box for a Sprint, choose a frequency for your builds in sonar and schedule a cron job that runs it only when you really need it(since its time consuming).

    These are practices I use in my projects, but you have to look closely to your needs, since the tool (Sonar) is to help you with information about the quality of your project, and therefore, your architecture, your team and your engineering practices.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been digging internet for couple days, reading very old information, that leads
I have quite of bit of data that I will be uploading into Google
I have been recently digging into Mobile Programming, I practically tried out the J2ME
Have been trying to encrypt an xml file to a string so that I
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
I have been digging into the question for a while in StackOverflow Android get
I have been digging around on this site and googling for a while now
I have been digging for custom Flex preloaders and they all seem to rely
I have been spending hours digging in Govinda great job in WebdnaCodeSparker. I must
So I am new to Microsofts reporting system, and I have been digging thru

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.