Installing Cover CLI

Download the zip file from Diffblue and unzip in a suitable location (installation_location)

The Cover CLI comprises a script and some jar files:

  • dcover.bat - a batch script (Windows)
  • dcover - a bash script (Linux/macOS)

To be able to run the Cover CLI on multiple projects, add the relevant script to your path, or create an alias.

Add to path:

Linux/macOS

Add the following line to your ~/.profile (Linux) or ~/.zprofile (macOS):

PATH=$PATH:installation_location

(You will need to log out and in again, or reload your profile with source ~/.(z)profile for the changes to your path to become active)

Windows

Add installation_location to your search path by editing system environment variables (Control Panel → System and Security → System → Advanced System Settings → Environmental Variables)

(You will need to start a new shell window for the changes to your path to become active)

Add to alias:

Linux/macOS

Add the following line to your shell profile (e.g. ~/.zshrc or ~/.bashrc)

alias dcover="installation_location/dcover"

Windows

~\Documents\WindowsPowerShell\Profile.ps1

Set-Alias dcover installation_location/dcover.bat

Check you can run dcover

Run dcover --help to confirm that the command is found on your path and to view help information about the tool.

results matching ""

    No results matching ""