In this section:
Table of Contents | ||
---|---|---|
|
Overview
The command-line is the primary interface for running dotTEST in a non-interactive mode. The interface allows you to run dotTEST from any other script, language or build system that can launch a program, including *.bat
and *.cmd
scripts. For MSBuild, NAnt, or JetBrains TeamCity, use the integrators shipped with dotTEST (see Integrations).
Analyzing Visual Studio Solutions
Provide the path to a solution to analyze code. See Requirements 1 for the list of supported versions of Visual Studio solutions.
Analyzing a Single FileSolution
Use the -solution
switch to specify path of the solution. For example, you command line may resemble the following:
Code Block |
---|
dottestcli.exe -solution "C:\Devel\FooSolution\FooSolution.sln" -config "builtin://Demo" -report "C:\Report" |
Analyzing Multiple Solutions
Specify the -solution
switch multiple times or provide ANT-style wildcards. For example, you command line may resemble the following:
Code Block |
---|
dottestcli.exe -solution "C:\Devel\FooSolution\FooSolution.sln" -solution "C:\Devel\BarSolution\BarSolution.sln" -config "builtin://Demo" -report "C:\Report" |
or
Code Block |
---|
dottestcli.exe -solution "C:\Devel\**\*.sln" -config "builtin://Demo" -report "C:\Report" |
Analyzing Visual Studio Projects Without Solutions
You can specify a path or paths to *.csproj
or *.vbproj
projects if *.sln
files are unavailable by using the -project
switch. The -solution
switch is recommended, however, and should be used whenever possible.
Code Block |
---|
dottestcli.exe -project "C:\Devel\FooSolution\**\*.csproj" -config "builtin://Demo" -report "C:\Report" |
ANT-style paths are supported. The switch may be specified several times.
Analyzing Websites
Visual Studio Web Site projects do not use *.*proj
files and may be maintained without *.sln
files. Use the -website
switch to specify the directory of the website when no *.sln f
iles are present. For example, you command line may resemble the following:
Code Block |
---|
dottestcli.exe -website "C:\Devel\FooWebSite" -config "builtin://Demo" -report "C:\Report" |