2

I'm using SonarQube 4.3 and try to get a quality gate (formerly known as alerts) working which fails when the integration tests coverage has decreased since last analysis.

Does anyone know how to get to this?

Frank
  • 741
  • 1
  • 10
  • 24
  • 1
    Have you tried the steps here - http://docs.codehaus.org/display/SONAR/Quality+Gates ? – matt freake May 15 '14 at 08:51
  • yes I did, but it's not explained how to set the thresholds. I tried various things like "Coverage Delta since last analysis less than 100" "Coverage Delta since last analysis less than 0" ... but nothing shows the desired effect. It seems to me the number I enter is always treated as an absolute value and refers to the current coverage. – Frank May 15 '14 at 10:46
  • Hmmm...we're still using Alerts and for that we have "Coverage Delta since last analysis is less than 0%" which works, so it sounds like what you're doing *should* work. – matt freake May 15 '14 at 11:36
  • In Alerts the UI has a '%' sign next to the input-box you put the figure into, so you don't have to actually put the '%' sign in, just the figure. – matt freake May 15 '14 at 13:17

1 Answers1

2

Ok, that's it. Set "Coverage, Delta since last analysis, less than, 0". The "0" goes in the error field, if this should cause an error. Thanks Disco 3

Frank
  • 741
  • 1
  • 10
  • 24
  • 5
    Apparently this feature is no longer available in SonarQube 5.6.6. Quality Gates only support absolute measures and changes within the "Leak period". Or am I just too stupid to find the "Delta since last analysis" option? – MartinThé Sep 06 '17 at 14:52