Distributing Tests
Inferno allows Test Kits to be distributed like regular Ruby gems. In order to make your Test Kit available to others:
- Make sure your repository is organized as described in Template Layout.
- Fill out the information in the
gemspec
file at the root of the repository. The name of the file should matchspec.name
within the file and the name of the main file inlib
. For example, for the US Core Test Kit, this file would be namedus_core_test_kit.gempsec
andspec.name
would be'us_core_test_kit'
. This page has recommended naming conventions for gems. - Create the gem. Run
gem build *.gemspec
. You should see the messageSuccessfully built RubyGem
. Your Test Kit can be shared by copying the.gem
file and installing it as you would any other Ruby gem. - Optional: Once your
gemspec
file has been updated, you can publish your gem on rubygems, the official Ruby gem repository. This will make your Test Kit discoverable and available to the public. To publish your gem on rubygems, you will first need to make an account and then rungem push *.gem
. If you don’t publish your gem on rubygems, users will still be able to install your Test Kit if it is located in a public Git repository. See Running Multiple Test Kits on how to reference a Test Kit gem available via Git.
Suggest an improvement
Want to make an change? Contribute an edit for this page on the Inferno Framework GitHub repository.