How to Install and Uninstall bats Package on openSUSE Leap

Last updated: May 13,2024

1. Install "bats" package

This is a short guide on how to install bats on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install bats

2. Uninstall "bats" package

Please follow the instructions below to uninstall bats on openSUSE Leap:

$ sudo zypper remove bats

3. Information about the bats package on openSUSE Leap

Information for package bats:
-----------------------------
Repository : Main Repository
Name : bats
Version : 1.8.2-bp155.1.5
Arch : noarch
Vendor : openSUSE
Installed Size : 123.8 KiB
Installed : No
Status : not installed
Source package : bats-1.8.2-bp155.1.5.src
Upstream URL : https://github.com/bats-core/bats-core/
Summary : Bash Automated Testing System
Description :
Bats is a TAP-compliant (http://testanything.org/) testing framework for Bash.
It provides a simple and repeatable way to verify that the UNIX programs you
write behave as expected.
A Bats test file is a Bash script with special syntax for defining test cases.
Under the hood, each test case is just a function with a description.
Bats is most useful when testing software written in Bash, but you can use it
to test any UNIX program.