2
votes

I configure sonar with jenkins,i build the maven project in jenkins it builds successfully but in sonar always shows code coverage blank.enter image description here what can be problem please help me....

this is sonar dashboard. code coverage

1
are your tests in the same maven module as your productive code? If not they will not be considered covered when exercised by the tests.Jens Schauder
What do you use for code coverage?Eugen Martynov

1 Answers

0
votes

Your issue here is that all your tests are in error. Therefore, it is normal that the coverage is 0% because nothing is properly covered. Check the log to understand why all your tests are in error.