How To Install rubygem-test-unit on Rocky Linux 8

In this tutorial we learn how to install rubygem-test-unit on Rocky Linux 8. rubygem-test-unit is An xUnit family unit testing framework for Ruby

Introduction

In this tutorial we learn how to install rubygem-test-unit on Rocky Linux 8.

What is rubygem-test-unit

Test principles. These were originally designed by Kent Beck, creator of extreme programming software development methodology, for Smalltalk’s SUnit. It allows writing tests, checking results and automated testing in Ruby.

We can use yum or dnf to install rubygem-test-unit on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-test-unit.

Install rubygem-test-unit on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install rubygem-test-unit using dnf by running the following command:

sudo dnf -y install rubygem-test-unit

Install rubygem-test-unit on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rubygem-test-unit using yum by running the following command:

sudo yum -y install rubygem-test-unit

How To Uninstall rubygem-test-unit on Rocky Linux 8

To uninstall only the rubygem-test-unit package we can use the following command:

sudo dnf remove rubygem-test-unit

rubygem-test-unit Package Contents on Rocky Linux 8

/usr/share/gems/gems/test-unit-3.2.7
/usr/share/gems/gems/test-unit-3.2.7/COPYING
/usr/share/gems/gems/test-unit-3.2.7/GPL
/usr/share/gems/gems/test-unit-3.2.7/LGPL
/usr/share/gems/gems/test-unit-3.2.7/PSFL
/usr/share/gems/gems/test-unit-3.2.7/README.md
/usr/share/gems/gems/test-unit-3.2.7/Rakefile
/usr/share/gems/gems/test-unit-3.2.7/doc
/usr/share/gems/gems/test-unit-3.2.7/doc/text
/usr/share/gems/gems/test-unit-3.2.7/doc/text/getting-started.md
/usr/share/gems/gems/test-unit-3.2.7/doc/text/how-to.md
/usr/share/gems/gems/test-unit-3.2.7/doc/text/news.md
/usr/share/gems/gems/test-unit-3.2.7/lib
/usr/share/gems/gems/test-unit-3.2.7/lib/test
/usr/share/gems/gems/test-unit-3.2.7/lib/test-unit.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/assertion-failed-error.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/assertions.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/attribute-matcher.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/attribute.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/auto-runner-loader.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/autorunner.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/code-snippet-fetcher.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/collector
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/collector.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/collector/descendant.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/collector/dir.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/collector/load.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/collector/objectspace.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/collector/xml.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/color-scheme.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/color.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/data.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/diff.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/error.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/exception-handler.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/failure.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/fault-location-detector.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/fixture.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/notification.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/omission.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/pending.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/priority.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/runner
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/runner/console.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/runner/emacs.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/runner/xml.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/test-suite-creator.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/testcase.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/testresult.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/ui
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/ui/console
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/ui/console/outputlevel.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/ui/emacs
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/ui/emacs/testrunner.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/ui/testrunner.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnerutilities.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/ui/xml
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/ui/xml/testrunner.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/util
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/util/backtracefilter.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/util/method-owner-finder.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/util/output.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/util/procwrapper.rb
/usr/share/gems/gems/test-unit-3.2.7/lib/test/unit/version.rb
/usr/share/gems/gems/test-unit-3.2.7/sample
/usr/share/gems/gems/test-unit-3.2.7/sample/adder.rb
/usr/share/gems/gems/test-unit-3.2.7/sample/subtracter.rb
/usr/share/gems/gems/test-unit-3.2.7/sample/test_adder.rb
/usr/share/gems/gems/test-unit-3.2.7/sample/test_subtracter.rb
/usr/share/gems/gems/test-unit-3.2.7/sample/test_user.rb
/usr/share/gems/gems/test-unit-3.2.7/test
/usr/share/gems/gems/test-unit-3.2.7/test/collector
/usr/share/gems/gems/test-unit-3.2.7/test/collector/test-descendant.rb
/usr/share/gems/gems/test-unit-3.2.7/test/collector/test-load.rb
/usr/share/gems/gems/test-unit-3.2.7/test/collector/test_dir.rb
/usr/share/gems/gems/test-unit-3.2.7/test/collector/test_objectspace.rb
/usr/share/gems/gems/test-unit-3.2.7/test/fixtures
/usr/share/gems/gems/test-unit-3.2.7/test/fixtures/header-label.csv
/usr/share/gems/gems/test-unit-3.2.7/test/fixtures/header-label.tsv
/usr/share/gems/gems/test-unit-3.2.7/test/fixtures/header.csv
/usr/share/gems/gems/test-unit-3.2.7/test/fixtures/header.tsv
/usr/share/gems/gems/test-unit-3.2.7/test/fixtures/no-header.csv
/usr/share/gems/gems/test-unit-3.2.7/test/fixtures/no-header.tsv
/usr/share/gems/gems/test-unit-3.2.7/test/fixtures/plus.csv
/usr/share/gems/gems/test-unit-3.2.7/test/run-test.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-assertions.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-attribute-matcher.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-attribute.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-code-snippet.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-color-scheme.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-color.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-data.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-diff.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-emacs-runner.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-error.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-failure.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-fault-location-detector.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-fixture.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-notification.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-omission.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-pending.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-priority.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-test-case.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-test-result.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-test-suite-creator.rb
/usr/share/gems/gems/test-unit-3.2.7/test/test-test-suite.rb
/usr/share/gems/gems/test-unit-3.2.7/test/testunit-test-util.rb
/usr/share/gems/gems/test-unit-3.2.7/test/ui
/usr/share/gems/gems/test-unit-3.2.7/test/ui/test_testrunmediator.rb
/usr/share/gems/gems/test-unit-3.2.7/test/util
/usr/share/gems/gems/test-unit-3.2.7/test/util/test-method-owner-finder.rb
/usr/share/gems/gems/test-unit-3.2.7/test/util/test-output.rb
/usr/share/gems/gems/test-unit-3.2.7/test/util/test_backtracefilter.rb
/usr/share/gems/gems/test-unit-3.2.7/test/util/test_observable.rb
/usr/share/gems/gems/test-unit-3.2.7/test/util/test_procwrapper.rb
/usr/share/gems/specifications/test-unit-3.2.7.gemspec

References

Summary

In this tutorial we learn how to install rubygem-test-unit on Rocky Linux 8 using yum and dnf.