Code coverage Definition from Wikipedia: In computer science, test coverage is a measure (in percent) of the degree to which the source code of a program is executed when a particular test suite is run. Types: Function coverage – has each function (or subroutine) in the program been called? Statement coverage – has each statement in the program been executed? Edge coverage – has every edge in the control-flow graph been executed?
I tried SonarQube locally. Overview There are two servers. SonarQube and SonaScanner In this example, run SonarScanner with by CLI. The scan data will send to SonarQube. Getting started SonarQube (Docker) Run SonarQube on Docker: docker run -d --name sonarqube -p 9000:9000 sonarqube:8.9-community After that, Browse http://localhost:9000 Log in with admin/admin, and update your password Add a project, and get token. Project key: mytest Display name: MyTest Name of token: myToken Token (in my case): df19e6fee8433d746e65e0043976043fe059aa57 SonarScanner (Docker) Note the network of the SonarQube Docker container: