Console runner is configurable in two ways:
- Through XML configuration files.
- Through command line parameters.
These two approaches could be mixed. In this case parameters specified in command line will override the ones specified in XML.
It is possible to specify relative paths in the console runner parameters. Relative paths defined in xml configuration file are treated relative to the location of this file. Relative paths in command line parameters are treated relative to the console runner working directory.
All dotCover commands (except version and help) accept parameters in a 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>
dotCover help cover config.xml