Command Line Load Settings

Coverage Validator can be controlled from the command line prompt.

This tutorial describes in detail how to load settings from the command line.

Loading settings on the command line is useful for loading predefined settings from a file rather than setting many switches on the command line. You can configure your settings using the user interface then save them for use on the command line.

The command line is:

coverageValidator.exe -loadSettings "c:\test results\settingsForTest100.cvs"
                      -program "c:\test results\testbed.exe"
                      -saveSession "c:\test results\test100.cvm" 

The above command line can be broken into its constituent items:

  • Specify the settings to load. -loadSettings “c:\test results\settingsForTest100.cvs”
  • Specify the program to run. -program “c:\test results\testbed.exe”
  • The resulting session is saved in c:\test results\test100.cvm. -saveSession “c:\test results\test100.cvm”
  • Run Coverage Validator with the user interface hidden. -hideUI

This command line loads the settings c:\test results\settingsForTest100.cvs, then runs the test program. When the test program closes the code coverage results are finalised then saved to the session c:\test results\test100.cvm. Finally Coverage Validator is closed.

Command Line Builder

If you find writing command line tiresome, and you’d like some help we have created a command line builder tool to make the process of creating command lines a lot easier.

Fully functional, free for 30 days