Tag Archives: cucumber

IronRuby vs. Gherkin – a temporary fix

IronRuby doesn’t currently work with the latest versions of cucumber. This is a known bug and is a real pain. There is a work around, and it’s kinda rubbish: don’t use any versions of cucumber > 0.6.3. After that version, … Continue reading

Posted in IronRuby, Making Life Easier, Ruby, Tools, cucumber | Tagged , , , , | Leave a comment

Netbeans ‘Cucumber Features’ plugin in Beta!

The best ruby IDE, Netbeans, now has a Cucumber plugin in beta! It’s the old “QuBiT” plugin that I’ve been using for a while though it looks like it’s been rebranded as the “Cucumber Features” plugin. Here it is: As … Continue reading

Posted in Tools, cucumber | Tagged , , | Leave a comment

Remove junk from IronRuby cucumber output

When running cucumber tests under IronRuby, your output will be full of junk like the following: Feature: example feature Scenario: a scenario←[90m     # features\testoutput.feature:3←[0m ←[32mGiven some test setup←[90m  # features/step_definitions/output_steps.rb:1←[0m←[0m ←[32mWhen I do something←[90m    # features/step_definitions/output_steps.rb:5←[0m←[0m ←[32mThen something happens←[90m # … Continue reading

Posted in Automated Testing, IronRuby, Ruby, Tools, cucumber | Tagged , , , , | Leave a comment

Updated script to list all cucumber step definitions

In a previous post I put up a small script that would dump out all step definitions available in a cucumber project. Here’s an updated version… it hasn’t changed much apart from the output is now a html table that … Continue reading

Posted in Automated Testing, Example Code, Making Life Easier, Ruby, Tools, cucumber | Tagged , , , , , | Leave a comment

How to list all cucumber step definitions

If you’re using cucumber you probably have step definitions split across several files, and you’re probably using a tool that doesn’t do a good job of listing the available step definitions (one of the biggest downsides of using cucumber). What … Continue reading

Posted in Automated Testing, Example Code, Ruby, cucumber | Tagged , , | 4 Comments

Cucumber step definition for debugging

Building on a previous post about debugging cucumber tests with ruby-debug, here’s a simple cucumber step definition you can use in your cucumber scenario in order to debug it: Then /^I debug$/ do breakpoint 0 end Use it as follows: … Continue reading

Posted in Automated Testing, Example Code, Ruby, Tools, cucumber | Tagged , , , , | Leave a comment

Debugging cucumber tests with ruby-debug

Testing with cucumber blows test/unit out of the water, apart from one small aspect… I can’t use the Netbeans’ GUI debugger. The Netbeans debugger has been a joy to use, but sadly I have to say goodbye. So I’m left … Continue reading

Posted in Automated Testing, Example Code, Ruby, Tools, WATIR, cucumber | Tagged , , , , , , , | Leave a comment