gotestsum command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gotestsum: command not found
or when using sudo you get the following error message
sudo: gotestsum: command not found
Solutions to gotestsum: command not found
How To Fix gotestsum: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gotestsum is provided by gotestsum package.
gotestsum is:
go test
runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test run results.
gotestsum runs tests, prints friendly test output and a summary of the test run. Requires Go 1.10+.
gotestsum works by running go test –json ./… and reading the JSON output.
To fix this problem, we can install more using the command below.
sudo apt-get -y install gotestsum
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gotestsum.
sudo apt -y install gotestsum
Or if you have aptitude installed you can use the following command.
sudo aptitude install gotestsum
Summary
In this tutorial we learn how to fix gotestsum command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.