How to Install and Uninstall shunit2 Package on openSUSE Leap

Last updated: January 11,2025

1. Install "shunit2" package

This tutorial shows how to install shunit2 on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install shunit2

2. Uninstall "shunit2" package

In this section, we are going to explain the necessary steps to uninstall shunit2 on openSUSE Leap:

$ sudo zypper remove shunit2

3. Information about the shunit2 package on openSUSE Leap

Information for package shunit2:
--------------------------------
Repository : Main Repository
Name : shunit2
Version : 2.1.6-bp155.2.12
Arch : noarch
Vendor : openSUSE
Installed Size : 260.7 KiB
Installed : No
Status : not installed
Source package : shunit2-2.1.6-bp155.2.12.src
Upstream URL : https://github.com/kward/shunit2
Summary : Test Framework for Bourne Based Shell Scripts
Description :
shUnit2 is a xUnit unit test framework for Bourne based shell scripts,
and it is designed to work in a similar manner to JUnit, PyUnit, etc.
If you have ever had the desire to write a unit test for a shell
script, shUnit2 can do the job.