subunit2junitxml command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
subunit2junitxml: command not found
or when using sudo you get the following error message
sudo: subunit2junitxml: command not found
Solutions to subunit2junitxml: command not found
How To Fix subunit2junitxml: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu subunit2junitxml is provided by subunit package.
subunit is:
subunit is a protocol for test activity serialisation deserialisation. This permits executing tests remotely, or saving the result of test runs for later introspection.
The subunit package includes the subunit command line tools: subunit-diff, subunit-filter subunit-stats tap2subunit subunit2pyunit subunit-ls subunit-tags, subunit2gtk
To fix this problem, we can install more using the command below.
sudo apt-get -y install subunit
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install subunit.
sudo apt -y install subunit
Or if you have aptitude installed you can use the following command.
sudo aptitude install subunit
Summary
In this tutorial we learn how to fix subunit2junitxml command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.