Automated testing - add-ons/best-practices GitHub Wiki
Using a Kodi stub implementation
Various add-ons are using a set of stub modules in order to test their add-on outside of Kodi.
See xbmc modules in plugin.video.vrt.nu tests tree.
Using GitHub CI
Integrating your testing into GitHub CI directly offers quite some advantages, and we have ready-to-go examples for both kodi-addon-checker, sanity checks as well as unit testing and even automated releases.
See plugin.video.vrt.nu workflows and CI output.
Using Codecov
Once you start to automated testing, you would like to know how much of your add-on is covered by your tests. Codecov can help here.
Configured at the Add-ons organization level now, see Codecov output.
Using Sonarcloud
Sonarcloud can help to assess your code's quality by testing for common ill-practices, known security issues and antipatterns.
Configured in GitHub CI, see Sonarcloud output.