GEM2DEB-TEST-RUNNER(1)
π GEM2DEB-TEST-RUNNER π
okay bestie, welcome to the gem2deb-test-runner corner of the GEM2DEB-TEST-RUNNER(1) manual π
she runs the test suite that lives inside Debian Ruby packages, and she is so good at it. grab a strawberry π and let's go.
β¨ NAME β¨
gem2deb-test-runner β runs the test suite contained in Debian Ruby packages π§
πΈ SYNOPSIS πΈ
gem2deb-test-runner [OPTIONS]
π¦ DESCRIPTION π¦
okay so here's the vibe: gem2deb-test-runner runs the tests that ship inside a source Debian Ruby package. the way those tests get run is configured in one of these three files:
debian/ruby-test-files.yamldebian/ruby-tests.rakedebian/ruby-tests.rb
if you want the full tea on those, check the FILES section in dh_ruby(1). iykyk π
if you call it with no arguments, from the root of the source package, after the package has been built and installed under debian/package_name β then the tests will be run using the files of the package that's installed under debian/package_name. no cap. this call is literally part of the dh_ruby(1) sequence when you build a Ruby package with gem2deb, so she's out here doing main character work behind the scenes π
and then there's --autopkgtest. if you use that option, the package needs to be installed on the system. gem2deb-test-runner will not try to load files under debian/, and it will move the lib/ and ext/ directories away temporarily π so that the test suite gets run against the installed package. this is the whole point in the context of automatic as-installed package testing, through the autopkgtest framework. iconic behaviour fr fr.
π OPTIONS π
--autopkgtestβ run the tests against the installed package, for automatic as-installed package testing. super useful in conjunction withadt-run(1). β¨-c,--check-dependenciesβ before running the tests, she checks whether all the dependencies of the package (as declared in the Rubygems metadata) are actually present. if they aren't, the program exits with a non-zero status code β i.e. it fails. so like, a vibe check on your deps π-b,--check-bundlerβ check that the package can be correctly loaded by bundler. this tests that the package can be loaded properly by bundler with the following two types of Gemfiles. one of them lists the package as a top-level dependency:
gem "foo"
that one gets tested by calling ruby -rbundler/setup. π«Ά
the other type includes the package in a group:
group :test do
gem "foo"
end
and that one gets tested by calling ruby -rbundler -e 'Bundler.require(:test)'. slay.
π ENVIRONMENT π
GEM2DEB_TEST_RUNNERβ used to pass options togem2deb-test-runnervia the environment. for example, to makegem2deb-test-runnercheck dependencies during package build, you can add the following todebian/rules:
export GEM2DEB_TEST_RUNNER = --check-dependencies
set it and forget it, bestie. π
π EXIT STATUS π
0if tests pass. we love to see it π1if tests fail. </377if--autopkgtestwas passed andgem2deb-test-runnercannot determine how to run the test suite. girl is confused and she's honest about it π
β SEE ALSO β
okay that's the whole page, go forth and run your tests π
this gorgeous little manual page is from the GEM2DEB-TEST-RUNNER(1) crew, dated 2026-05-15. mwah, periodt. π β¨
π¦ where this page comes from
- ubuntu stonking: gem2deb-test-runner 2.2.9 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms