How To Install gtester2xunit on Ubuntu 18.04

In this tutorial we learn how to install gtester2xunit on Ubuntu 18.04. gtester2xunit is Helper for converting gtester xml output to xunit.

Introduction

In this tutorial we learn how to install gtester2xunit on Ubuntu 18.04.

What is gtester2xunit

gtester2xunit is:

This tool can be used to convert gtester xml output in a format that will be understandable to xunit, and thus allow hooking up gtest test results into automated xunit results tracking.

There are three methods to install gtester2xunit on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install gtester2xunit Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install gtester2xunit using apt-get by running the following command:

sudo apt-get -y install gtester2xunit

Install gtester2xunit Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install gtester2xunit using apt by running the following command:

sudo apt -y install gtester2xunit

Install gtester2xunit Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install gtester2xunit using aptitude by running the following command:

sudo aptitude -y install gtester2xunit

How To Uninstall gtester2xunit on Ubuntu 18.04

To uninstall only the gtester2xunit package we can use the following command:

sudo apt-get remove gtester2xunit

Uninstall gtester2xunit And Its Dependencies

To uninstall gtester2xunit and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove gtester2xunit

Remove gtester2xunit Configurations and Data

To remove gtester2xunit configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge gtester2xunit

Remove gtester2xunit configuration, data, and all of its dependencies

We can use the following command to remove gtester2xunit configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge gtester2xunit

References

Summary

In this tutorial we learn how to install gtester2xunit package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.