BDD with Cucumber and rspec – when is this redundant?

Good question, one I’ve grappled with recently while working on a Rails app, also using Cucumber/RSpec. I try to test as much as possible at every level, however, I’ve also found that as the codebase grows, I sometimes feel I’m repeating myself needlessly. Using “Outside-in” testing, my process usually goes something like: Cucumber Scenario -> … Read more

Are there any non-developer tools to edit gherkin files? [closed]

Here is a non-developer tool. We had a similar requirement and I wanted to have a stab at creating a Chrome extension. It’s free and there are no ads. Above all it is cross-platform and requires no technical knowledge to install and run. https://chrome.google.com/webstore/detail/tidy-gherkin/nobemmencanophcnicjhfhnjiimegjeo I know this is an old post, but I came across … Read more

Cuke4Nuke or SpecFlow?

(I might be biased because I am involved with SpecFlow, but here my thoughts…) Cuke4Nuke is very close to Cucumber. This promises a lot of advantages: Compatibility Getting new features from Cucumber when Cucumber evolves (at least in theory, but language support is an example for this) Being a real part of the Cucumber community … Read more

How to assert on number of html table rows in ruby using capybara + cucumber

Even though have_css? will do the trick, your tests should tell you how they failed, rather than just saying some condition was supposed to be true and it was false. With this in mind, the first example below reads much better than the second: # IF FAILED => “expected 10, got 7” page.all(‘table#myTable tr’).count.should == … Read more

Outside-in BDD (with Specflow)

Declaritive is the proper way, IMO. If youre talking about page .aspx file names, you’re doing it wrong. The purpose of the story is to facilitate communication between developers and non-develoeprs. Non-developers don’t care about products.aspx, they care about a product listing. Your system does something the non-developers find value in. This is what you’re … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)