Console Runner Configuration
Console runner is configurable in two ways:
These two approaches could be mixed. In this case parameters specified in command line will override the ones specified in XML.
All dotCover commands (except version
and help
) accept parameters in an XML configuration file. A configuration file is a reasonable alternative to specifying all parameters inline or having them in a batch file. To avoid errors in the supported XML tags, it is recommended to generate a configuration stub file programmatically, and then edit it to specify the parameter values.
To generate a configuration stub file for a particular dotCover command, execute the following:
dotCover help <command name> <configuration stub file>
For example, to generate a configuration stub file for the cover
command, execute the following:
dotCover help cover config.xml
When the configuration stub file is ready, open it in your favorite XML editor and provide desired values for the parameters. You can find descriptions of all parameters in the stub file.