I am working on adding C++ support to the Sonargraph-Integration plugin. While doing it I also upgrded the plugin API and test harness to 9.3.0.51899. Now the unit tests do not compile anymore since classes like SensorContextTester are not available anymore. Unfortunately I could not find any documentation about how to test SonarQube plugins. Where do I start? Any hints are most welcome.
Unfortunately, SonarQube never had a good documentation on plugin development. The “easiest” way to understand what APIs are available and how they’re used is looking at the source code of the existing plugins.
About the SensorContextTester specifically, you’ll need to add “sonar-plugin-api-impl” as a test dependency.
3 Likes
Thank you very much, that solved it…