I'm working on a SonarQube plugin and would like to add some tests that integration test against running servers.
I'm launching the servers in docker containers, and would like to then execute sonar analysis against them from within JUnit tests.
This looks to be possible using org.sonarsource.scanner.api.EmbeddedScanner
, but there might be a better way.
One drawback of using EmbeddedScanner would be that I would only be able to analyse static files on disk.
Is there a better approach?