Code is working in unit Testing but not working when deployed in sonar-server through SonarScanner

when I am doing unit testing of my Rule its working fine and giving appropriate output.
Capture1
But when i am running it on server through sonar-scanner its showing !unknown!
image

Hi,

Welcome to the community!

Are you sure all the APIs you’re using are public? It’s possible you’re able to access private or protected APIs during unite testing, but they won’t be available during analysis.

 
Ann

Thanks Ann your solution really helped me a lot.:smile:

1 Like