Skip to end of metadata
Go to start of metadata

Name

Key

Default value

Description

Gallio install directory

sonar.gallio.installDirectory

C:/Program Files/Gallio

Absolute path of the Gallio installation folder.

Gallio program timeout

sonar.gallio.timeoutMinutes

30

Maximum number of minutes before the Gallio program will be stopped.

Gallio activation mode

sonar.gallio.mode

 

Possible values : empty (means active), 'skip' and 'reuseReport'.
When "reuseReport" mode is enable for dotCover, the 'TeamCityXML' format is expected. Indeed even it is not documented by JetBrains, you can use "/ReportType=TeamCityXML"

Name of the Gallio report files

sonar.gallio.reports.path

 

Path to the Gallio report file used when reuse report mode is activated. This can be an absolute path, or a path relative to the solution base directory.

Test filter

sonar.gallio.filter

 

Filter that can be used to execute only a specific test category (i.e. CategoryName:unit to consider only tests from the 'unit' category).

Coverage tool

sonar.gallio.coverage.tool

PartCover

Coverage tool used by Gallio: it currently can be 'PartCover' (default), 'NCover', 'OpenCover', 'dotCover' (since version 1.4) or 'none' (= means no coverage analysis will be done).

PartCover install directory

sonar.partcover.installDirectory

C:/Program Files/PartCover/PartCover .NET 4.0

Absolute path of the PartCover installation folder.

OpenCover install directory

sonar.opencover.installDirectory

C:/Program Files/OpenCover

Absolute path of the OpenCover installation folder.

dotCover install directory
(since v1.4)
sonar.dotcover.installDirectoryC:/Program Files/JetBrains/dotCover/v1.2/BinAbsolute path of the dotCover installation folder.

Name of the Gallio coverage report files

sonar.gallio.coverage.reports.path

 

Path to the Gallio coverage report file used when reuse report mode is activated. This can be an absolute path, or a path relative to the solution base directory.

Coverage excludes

sonar.gallio.coverage.excludes

 

Comma-separated list of namespaces and assemblies excluded from the code coverage. For PartCover, the format for an exclusion is: '[assembly]namespace'. For NCover, the format is just the name of the assemblies to exclude. For dotCover, you can use the dotCover filter format which looks like -:module=ASSEMBLY;class=*;function=*;

Gallio runner type (since v1.1)

sonar.gallio.runner

 

If coverage tool is not NCover, you can use this property to specify the Gallio runner type. As describe in the official gallio documentation, possible values are IsolatedAppDomain (PartCover default runner type), IsolatedProcess and Local

Gallio activation mode for integration tests (since v1.3)

sonar.gallio.it.modeskip

Activation property for integration tests. By default, integration tests are disabled. When activated, integration tests may be located in dedicated projects or may be identified by a gallio filter. See properties below for more information.
Possible values : empty (means 'skip'), 'active', 'skip' and 'reuseReport'.

Name of the IT Gallio report files (since v1.3)sonar.gallio.it.reports.path 

Path to the Gallio report file used when reuse report mode is activated for integration tests. This can be an absolute path, or a path relative to the solution base directory.

Name of the IT Gallio coverage report files (since v1.3)sonar.gallio.it.coverage.reports.path 

Path to the Gallio coverage report file used when reuse report mode is activated for integration tests. This can be an absolute path, or a path relative to the solution base directory.

Integration test filter (since v1.3)sonar.gallio.it.filter Filter that can be used to execute only a specific integration test category (i.e. CategotyName:integ to consider only tests from the 'integ' category).

 

Advanced parameters

 

Name

Key

Default value

Description

Gallio safe mode (since v1.2)

sonar.gallio.safe.modefalse

If set to true, safe mode is activated. This means that gallio will be launched once for each single test assembly of the analysed solution. Otherwise, the default behavior is to launch gallio only once per analysis.
The safe mode is very useful if you are using NCover with a "Classic edition" licence. If the safe mode is activated, the gallio plugin will launch gallio for each test assembly and then merge the generated xml reports instead of NCover. 

Test assemblies (since v1.1)sonar.dotnet.test.assemblies 

Not needed in most cases.
Comma-seperated list of path patterns to locate the assemblies containing the unit tests of the current visual studio solution. If empty, the plugin will try to get this list from the Visual Studio 'csproj' files. These paths can be absolute or relative, the starting point being the folders where the csproj files are located. Also the special key "$(SolutionDir)" can be used to build a path relative to the root folder of the solution (i.e. where the sln file is located). For more details, please read the note below

Integration test assemblies (since v1.3)sonar.dotnet.it.assemblies 

Not needed in most cases.
Comma-seperated list of path patterns to locate the assemblies containing the integration tests of the current visual studio solution. If empty, the plugin will try to get this list from the Visual Studio 'csproj' files. These paths can be absolute or relative, the starting point being the folders where the csproj files are located. Also the special key "$(SolutionDir)" can be used to build a path relative to the root folder of the solution (i.e. where the sln file is located). For more details, please read the note below

About path patterns

Ant style patterns can be used. "*" means any file or any directory. "**" means any directory and subdirectory. For example "**/Foo*.dll" means any dll file prefixed by "Foo" anywhere in a project. IF you need to reference assembly files outside your solution folder, you can use absolute paths or "../". For example "$(SolutionDir)/../lib/**.*dll" can be used to specify all the dll files of a lib folder located at the same level as the root folder of your visual studio solution.

Warning

Each time you need to specify a path, or a pattern to locate files, use "/" instead of "\"

Labels
  • None