Links
Comment on page

Install and update Cover Reports

How to install, update, and configure Diffblue Cover Reports

Prerequisites

Specific Cover Reports prerequisites are listed below - see Specs & Reqs for full details.
Server hosting Cover Reports - Cover Reports Administrator:
  • Docker Install - Docker Engine 20.10.17, Docker Compose v2.10.2, and if you're using Docker Hub you'll also need an internet connection.
  • Zip Install & Windows Installer - Java JDK 11+ (and available in your PATH system environment variable). For production use, you'll also need to provide a vanilla PostgreSQL 14 database (see Using an external database server).
  • Windows Install - Windows Server 2019 and above, Windows 10 and above.
  • All - Network connectivity between the server and client workstations.
Client workstation - Cover Reports Contributor:
  • Diffblue Cover CLI
  • JaCoCo 0.8.3+
  • Network connectivity between the user's workstation and the Cover Reports server.
Client workstation - Cover Reports User:
  • The latest version of Chrome, Edge, Safari, or Firefox with a screen resolution of 1920 x 1080 or higher.
  • Network connectivity between the user's workstation and the Cover Reports server.

Docker Install

Docker Archive
Docker Hub
  1. 1.
    Using the link provided by Diffblue, download the Cover Reports .tar.gz file (e.g. diffblue-cover-reports-2023.07.02.tar.gz) to the server you plan to use to host Cover Reports. Contact Diffblue Support if you don't have the download link.
  2. 2.
    From the directory containing the Cover Reports .tar.gz file, load the Docker bundle:
docker load -i /path/diffblue-cover-reports-<version>.tar.gz
  1. 3.
    In your shell, navigate to your preferred install directory (we'll now refer to this as $COVER_REPORTS_HOME). Using the link provided by Diffblue, download the Cover Reports Docker Compose file docker-compose.yml to $COVER_REPORTS_HOME. Contact Diffblue Support if you don't have the download link.
  2. 4.
    From the $COVER_REPORTS_HOME directory, start Cover Reports:
docker compose up -d
  1. 5.
    Finally, open a browser on a client PC that has access to the Cover Reports server and navigate to the Cover Reports Home Page (<HOSTURL>:8080). To change the default port see Configuration options.
  1. 1.
    To access the repository please sign up to Docker Hub and provide Diffblue Support with your username. Diffblue Support will grant access according to your subscription terms.
  2. 2.
    In your shell (from the server you plan to use to host Cover Reports), log in to Docker Hub using the docker login command with either your username and password or username and Docker Hub Access Token, for example:
docker login -u <username> <password_or_token>
  1. 3.
    In your shell, navigate to your preferred install directory (we'll now refer to this as $COVER_REPORTS_HOME). Using the link provided by Diffblue, download the Cover Reports Docker Compose file docker-compose.yml to $COVER_REPORTS_HOME. Contact Diffblue Support if you don't have the download link.
  2. 4.
    From the $COVER_REPORTS_HOME directory, start Cover Reports:
docker compose up -d
  1. 5.
    Finally, open your browser and navigate to the Cover Reports Home Page (<HOSTURL>:8080). To change the default port see Configuration options.

Zip Install (Windows, macOS, Linux)

As an alternative, Cover Reports can be installed using the zip archive. This provides for running Cover Reports as a Windows Service, Linux Service, Windows .bat, or macOS/Linux .sh, and removes the need to use Docker. This also provides various database configuration options to provide further flexibility.
To install Cover Reports from the Zip archive:
  1. 1.
    Using the link provided by Diffblue, download the Cover Reports .zip file - for example, diffblue-cover-reports-2023.10.02.zip
  2. 2.
    In your shell, navigate to your preferred install directory (we'll now refer to this as $COVER_REPORTS_HOME). This will be the home directory of Cover Reports.
  3. 3.
    Extract the contents of diffblue-cover-reports-2023.10.02.zip into the $COVER_REPORTS_HOME directory.
  4. 4.
    Install and start the service or run the script as needed.
Windows Service
Linux Service
Script
To install Cover Reports as a service on a Windows host, open a terminal, navigate to the windows-service folder in your Cover Reports install, and run cover-reports.exe install
Once the service has been installed, you can start and stop the Cover Reports service using the Windows Service Manager.
For a Linux host that uses systemd, you can start and stop the Cover Reports service using systemctl.
From the $COVER_REPORTS_HOME directory, start Cover Reports using the bin/cover-reports script for your operating system:
  • bin/cover-reports.bat for Windows
  • bin/cover-reports for macOS/Linux
  1. 5.
    Once installation is complete, review and set up your configuration options - see Configuration options for details.

Exe Install (Windows)

Cover Reports can be installed on Windows using the combined Cover CLI & Cover Reports installer.
  1. 1.
    Using the link provided by Diffblue, download the combined Cover CLI & Cover Reports - for example, diffblue-cover-installer-2023.10.02.exe
  2. 2.
    Run the installer and follow the on screen prompts - note that to install Cover Reports, make sure that the Cover Reports option is selected during the install.
  3. 3.
    Install and start the service or run the script as needed.
Windows Service
Script
To install Cover Reports as a service on a Windows host, open a terminal, navigate to the windows-service folder in your Cover Reports install, and run cover-reports.exe install
Once the service has been installed, you can start and stop the Cover Reports service using the Windows Service Manager.
From the $COVER_REPORTS_HOME directory, start Cover Reports using the bin/cover-reports.bat script. Note that during install this script is automatically added to your PATH system variable and can be accessed via a command line.
  • Once installation is complete, review and set up your configuration options - see Configuration options for details.

Updating Cover Reports

Updating Cover Reports may take some time to complete. During this time you won't be able to upload new reports bundles and the Reports URL won't be accessible.
Docker
ZIP Install
EXE Install
On your Cover Reports server:
  1. 1.
    Stop Cover Reports by running: docker compose down
  2. 2.
    In your shell, navigate to the $COVER_REPORTS_HOME directory where the existing installation is located and make a copy (backup) of the directory.
  3. 3.
    Rename the docker-compose.yml file in the $COVER_REPORTS_HOME directory - e.g. docker-compose-2023.08.13.yml
  4. 4.
    Using the link provided by Diffblue, download Cover Reports: - For Cover Reports Docker Compose, download the docker-compose.yml file to the $COVER_REPORTS_HOME directory. - For Cover Reports .tar.gz, download the latest Cover Reports bundle (e.g. diffblue-cover-reports-2023.08.01.tar.gz) and load the Docker bundle: docker load -i /path/diffblue-cover-reports-<version>.tar.gz
  5. 5.
    Start the new version of Cover Reports using the command: docker compose up -d
  1. 1.
    Make a copy of your custom files as needed - application.properties, cover-reports.xml, cover-reports.service
  2. 2.
    Using the link provided by Diffblue, download the latest Cover Reports .zip bundle to your Cover Reports install directory.
  3. 3.
    Stop Cover Reports (if currently running).
  4. 4.
    In your shell, navigate to the Cover Reports install directory and extract the contents of the downloaded zip file.
  5. 5.
    Add your custom files back to the updated installation.
  6. 6.
    Restart Cover Reports.
Windows:
  1. 1.
    Using the link provided by Diffblue, download the combined Cover CLI & Cover Reports - for example, diffblue-cover-installer-2023.10.02.exe
  2. 2.
    Run the installer and follow the on screen prompts - note that to install Cover Reports, make sure that the Cover Reports option is selected during the install.
  3. 3.
    Restart the Cover Reports service.

Suggested next page