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'. |
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.installDirectory | C:/Program Files/JetBrains/dotCover/v1.2/Bin | Absolute 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.mode | skip | 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. |
| 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). |
Name | Key | Default value | Description |
|---|---|---|---|
Gallio safe mode (since v1.2) | sonar.gallio.safe.mode | false | 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. |
| Test assemblies (since v1.1) | sonar.dotnet.test.assemblies | Not needed in most cases. | |
| Integration test assemblies (since v1.3) | sonar.dotnet.it.assemblies | Not needed in most cases. |
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. |
Each time you need to specify a path, or a pattern to locate files, use "/" instead of "\" |