No commit activity in last 3 years
No release in over 3 years
Run Cucumber tests in your console
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Cucumber Console

Cucumber Console allows you to run your Cucumber tests in a Rails console. Best served chilled with irb-config.

Watch the screencast

Watch the screencast!

Usage

Install it with:

gem 'cucumber-console'

If you have Pry installed, you will have access to the cucumber command in your console, which works exactly like the shell command line cucumber one.

pafy@bisou ~/prj/pleasehalp [master●] % rails c
Loading development environment (Rails 3.2.9)
~/prj/pleasehalp (development) > cucumber --format=pretty features/questions.feature:8
Using the default profile...
Feature: User asks a question

@javascript
Scenario: User asks a question                                 # features/questions.feature:4
Given I am on the homepage                                     # features/step_definitions/web_steps.rb:50
When I fill in the question field with "What time is it?"      # features/step_definitions/question.rb:1
And I press "Ask"                                              # features/step_definitions/web_steps.rb:58
Then the "question_text" field within the page should equal "" # features/step_definitions/web_steps.rb:145
And I should see a question "What time is it?"                 # features/step_definitions/question.rb:5

1 scenario (1 passed)
5 steps (5 passed)
0m1.036s

~/prj/crowdtap/sniper (development) >

If you don't have pry, you can use:

CucumberConsole.run '--format=pretty', 'features/questions.feature:8'

TODO

  • Testing

License

MIT License