cucumber-nagios lets you describe how a system
should work in natural language, and outputs whether it does in
the Nagios plugin format:
Feature: google.com It should be up And I should be able to search for things Scenario: Searching for things When I go to "http://www.google.com.au/" And I fill in "q" with "wikipedia" And I press "Google Search" Then I should see "www.wikipedia.org"
Then run it:
$ cucumber-nagios google.feature CUCUMBER OK - Critical: 0, Warning: 0, 4 okay
cucumber-nagios is distributed as a RubyGem.
$ gem install cucumber-nagios
Then you just set up a project to contain all your descriptions.
$ cucumber-nagios-gen project ebay.com.au $ cd ebay.com.au $ bundle install
bundle install freezes in RubyGem dependencies with
so you can tar up your
project and put it on another machine easily.
cucumber-nagios includes a generator that can spit out features.
From within your project directory:
$ cucumber-nagios-gen feature ebay.com.au bidding
ebay.com.au being the site you want to test,
bidding the feature you want to test.
Write your features in your favourite editor (the above generated feature
will live in
then test it with:
$ bin/cucumber-nagios features/ebay.com.au/bidding.feature CUCUMBER OK - Critical: 0, Warning: 0, 4 okay
- Code lives on GitHub.
- There will be bugs - please report them!
- MIT Licenced.
- Written by Lindsay Holmwood and helpers.