A very simple memory bank for cucumber tests
Allows you to write features like
Feature: I can store and recall stuff
Scenario: Obligatory Hello World
Given my data is "World"
And I keep my data as "VAR"
When I swizzle my data
Then my data should be "Hello %{VAR}"
Usage
Include require 'cuke_mem/cucumber'
in your features/support/env.rb
Then you can do
Given /^my data is "(.*)"$/ do |data|
@my_data = data
end
Given /^I keep my data as "(.*)"$/ do |var|
CukeMem.memorize var, @my_data
end
When /^I swizzle my data$/ do
@my_data="Hello #{@my_data}"
end
Then /^my data should be "(.*)"/ do |key|
@my_data.should == CukeMem.remember(key)
end
More
Check out specs and features to see all the ways you can use cuke_mem.
Install
gem install cuke_mem
or add the following to Gemfile:
gem 'cuke_mem'
and run bundle install
from your shell.
More Information
Contributing
Please see the contribution guidelines.
Credits
Contributers:
- Chris Busbey
cuke_mem is maintained and funded by Connamara Systems, llc.
The names and logos for Connamara Systems are trademarks of Connamara Systems, llc.
Licensing
cuke_mem is Copyright © 2016 Connamara Systems, llc.
This software is available under the GPL and a commercial license. Please see the LICENSE file for the terms specified by the GPL license. The commercial license offers more flexible licensing terms compared to the GPL, and includes support services. Contact us for more information on the Connamara commercial license, what it enables, and how you can start developing with it.