How To Install python-subunit on CentOS 7
Introduction
In this tutorial we learn how to install python-subunit
on CentOS 7.
What is python-subunit
Subunit is a streaming protocol for test results. The protocol is a binary encoding that is easily generated and parsed. By design all the components of the protocol conceptually fit into the xUnit TestCase -> TestResult interaction. Subunit comes with command line filters to process a subunit stream and language bindings for python, C, C++ and shell. Bindings are easy to write for other languages. A number of useful things can be done easily with subunit - Test aggregation reported/displayed together. For instance, tests from different languages can be shown as a seamless whole. - Test archiving - Test isolation with each other can be run separately and then aggregated, rather than interfering with each other. - Grid testing deserialization to get test runs on distributed machines to be reported in real time.
We can use yum
or dnf
to install python-subunit
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-subunit.
Install python-subunit on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python-subunit
using yum
by running the following command:
Install python-subunit on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install python-subunit
using dnf
by running the following command:
How To Uninstall python-subunit on CentOS 7
To uninstall only the python-subunit
package we can use the following command:
References
Summary
In this tutorial we learn how to install python-subunit
on CentOS 7 using yum
and dnf
.