cobertura-check command not found

In this troubleshooting guide we learn how to fix cobertura-check command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

cobertura-check: command not found

or when using sudo you get the following error message

sudo: cobertura-check: command not found

Solutions to cobertura-check: command not found

How To Fix cobertura-check: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cobertura-check is provided by cobertura package.

cobertura is:

Tool that measures test coverage by instrumenting a Java code base and watching which lines of code are and are not executed as the test suite runs. In addition to identifying untested code and locating bugs, Cobertura can optimize code by flagging dead, unreachable code and can provide insights into how an API operates in practice. It is based on jcoverage.

To fix this problem, we can install more using the command below.

sudo apt-get -y install cobertura

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install cobertura.

sudo apt -y install cobertura

Or if you have aptitude installed you can use the following command.

sudo aptitude install cobertura

Summary

In this tutorial we learn how to fix cobertura-check command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.