0.0
No release in over 3 years
Low commit activity in last 3 years
Provides an easy way to build a cucumber commandline.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0
 Project Readme

Basic stuff: Gem Version Project License Downloads

User stuff: Yard Docs

Developer stuff: Build Status Coverage Status Maintainability


CukeCommander

The cuke_commander gem provides an easy and programmatic way to build a command line for running Cucumber.

Installation

Add this line to your application's Gemfile:

gem 'cuke_commander'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cuke_commander

Usage

require 'cuke_commander'

# Choose your Cucumber options
cucumber_options = {tags: ['@tag1', '@tag2,@tag3'],
                    formatters: {json: 'json_output.txt',
                                 pretty: ''},
                    options: ['-r features']}

# Use the generator to create an appropriate Cucumber command line
clg = CukeCommander::CLGenerator.new
command_line = clg.generate_command_line(cucumber_options)

puts command_line
# This will produce something along the lines of
# cucumber -t @tag1 -t @tag2,@tag3 -f json -o json_output.txt -f pretty -r features

# Use the command line to kick off Cucumber
system(command_line)

Simple!

(see documentation for all implemented Cucumber options)

Development and Contributing

See CONTRIBUTING.md

License

The gem is available as open source under the terms of the MIT License.