Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Feel free to vote for SONARDOTNT-275

There is no more longer a Gallio-specific runner for NCover 4 (/r:NCover3). NCover 4 can monitor any .net running NET program and collect coverage. The requirement is to configure a project in NCover Code Central and tell it what is the process to monitor (name or regexp of process name), and also add some filters to tell what modules are the modules associated with this the project.

Here is a sample configuration:

Once a project is configured in Code Central, measure measures will be automatically collected the next time a monitored program is run.

...

--file can only configure the file name. It is not possible to give a full path. Resulting file will be in working directory with name <filename>.nccov (coverage-report.nccov in our example).

...

  • ask people to configure NCover project by themselfthemselves
  • add a new parameter sonar.ncover4.projectName that the user should provide for each project
  • add a new parameter sonar.ncover4.installDirectory
  • run:

...

  • verify command output and if everything is fine, execute the following command with working directory = target/sonar:

...

Limitations: manual configuration step required. No guaranty guarantee that NCover configuration (especially module names) matches SonarQube configuration (exclusions, ...). No way to differentiate Unit tests and ITs.

...