How To Install python3-subunit on Fedora 36

In this tutorial we learn how to install python3-subunit in Fedora 36. python3-subunit is Streaming protocol for test results

Introduction

In this tutorial we learn how to install python3-subunit on Fedora 36.

What is python3-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 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 python3-subunit on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-subunit.

Install python3-subunit on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-subunit using dnf by running the following command:

sudo dnf -y install python3-subunit

Install python3-subunit on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-subunit using yum by running the following command:

sudo yum -y install python3-subunit

How To Uninstall python3-subunit on Fedora 36

To uninstall only the python3-subunit package we can use the following command:

sudo dnf remove python3-subunit

python3-subunit Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/python_subunit-1.4.0.dist-info
/usr/lib/python3.10/site-packages/python_subunit-1.4.0.dist-info/COPYING
/usr/lib/python3.10/site-packages/python_subunit-1.4.0.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/python_subunit-1.4.0.dist-info/METADATA
/usr/lib/python3.10/site-packages/python_subunit-1.4.0.dist-info/WHEEL
/usr/lib/python3.10/site-packages/python_subunit-1.4.0.dist-info/top_level.txt
/usr/lib/python3.10/site-packages/subunit
/usr/lib/python3.10/site-packages/subunit/__init__.py
/usr/lib/python3.10/site-packages/subunit/__pycache__
/usr/lib/python3.10/site-packages/subunit/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/_output.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/_output.cpython-310.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/_to_disk.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/_to_disk.cpython-310.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/chunked.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/chunked.cpython-310.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/details.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/details.cpython-310.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/filters.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/filters.cpython-310.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/iso8601.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/iso8601.cpython-310.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/progress_model.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/progress_model.cpython-310.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/run.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/run.cpython-310.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/test_results.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/test_results.cpython-310.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/v2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/subunit/__pycache__/v2.cpython-310.pyc
/usr/lib/python3.10/site-packages/subunit/_output.py
/usr/lib/python3.10/site-packages/subunit/_to_disk.py
/usr/lib/python3.10/site-packages/subunit/chunked.py
/usr/lib/python3.10/site-packages/subunit/details.py
/usr/lib/python3.10/site-packages/subunit/filters.py
/usr/lib/python3.10/site-packages/subunit/iso8601.py
/usr/lib/python3.10/site-packages/subunit/progress_model.py
/usr/lib/python3.10/site-packages/subunit/run.py
/usr/lib/python3.10/site-packages/subunit/test_results.py
/usr/lib/python3.10/site-packages/subunit/v2.py
/usr/share/licenses/python3-subunit
/usr/share/licenses/python3-subunit/Apache-2.0
/usr/share/licenses/python3-subunit/BSD
/usr/share/licenses/python3-subunit/COPYING

References

Summary

In this tutorial we learn how to install python3-subunit on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).