qtest command not found

In this troubleshooting guide we learn how to fix qtest command not found error message

Introduction

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

qtest: command not found

or when using sudo you get the following error message

sudo: qtest: command not found

Solutions to qtest: command not found

How To Fix qtest: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu qtest is provided by ocaml-qtest package.

ocaml-qtest is:

qtest extracts inline unit tests written using a special syntax in comments. Those tests are then run using the oUnit framework and the qcheck library. The possibilities range from trivial tests – extremely simple to use – to sophisticated random generation of test cases.

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

sudo apt-get -y install ocaml-qtest

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

You can also use apt command to install ocaml-qtest.

sudo apt -y install ocaml-qtest

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

sudo aptitude install ocaml-qtest

Summary

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