How To Install perl-TAP-Harness-JUnit on CentOS 7

In this tutorial we learn how to install perl-TAP-Harness-JUnit on CentOS 7. perl-TAP-Harness-JUnit is Generate JUnit compatible output from TAP results

Introduction

In this tutorial we learn how to install perl-TAP-Harness-JUnit on CentOS 7.

What is perl-TAP-Harness-JUnit

The only difference between this module and TAP this adds mandatory ‘xmlfile’ argument, that causes the output to be formatted into XML in format similar to one that is produced by JUnit testing framework.

We can use yum or dnf to install perl-TAP-Harness-JUnit on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-TAP-Harness-JUnit.

Install perl-TAP-Harness-JUnit on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-TAP-Harness-JUnit using yum by running the following command:

sudo yum -y install perl-TAP-Harness-JUnit

Install perl-TAP-Harness-JUnit 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.

sudo dnf makecache

After updating yum database, We can install perl-TAP-Harness-JUnit using dnf by running the following command:

sudo dnf -y install perl-TAP-Harness-JUnit

How To Uninstall perl-TAP-Harness-JUnit on CentOS 7

To uninstall only the perl-TAP-Harness-JUnit package we can use the following command:

sudo dnf remove perl-TAP-Harness-JUnit

References

Summary

In this tutorial we learn how to install perl-TAP-Harness-JUnit on CentOS 7 using yum and dnf.