Cucumber alternative for .NET

You should also check out SpecFlow, that is an open-source project to do BDD with .NET. SpecFlow is using the same definition format (Gherkin), like cucumber, but you can write your step definitions in .NET. It basically generates unit-test classes (NUnit, MsTest, xUnit, etc.) from your feature files, so you can use the same unit … Read more

How to get parent node in Capybara?

I really found jamuraa’s answer helpful, but going for full xpath gave me a nightmare of a string in my case, so I happily made use of the ability to concatenate find’s in Capybara, allowing me to mix css and xpath selection. Your example would then look like this: find(‘#some_button’).find(:xpath,”.//..”).fill_in “Name:”, :with => name Capybara … Read more

Reuse Cucumber steps

Note that the method for calling steps within steps has changed in recent versions of cucumber, which you’ll see if you get an error like “WARNING: Using ‘Given/When/Then’ in step definitions is deprecated, use ‘step’ to call other steps instead:/path/to/step_definitions/foo_steps.rb:631:in `block in ‘ “. See the cucumber wiki for details. The gist of the change … Read more

What’s the difference between RSpec and Cucumber? [closed]

RSpec and Cucumber are both testing frameworks. RSpec includes traditional Unit Testing (which means testing a class or part of the application in isolation from the rest of the application. So your model does what your model is supposed to do, the controller does what it is supposed to do, etc). RSpec and Cucumber both … Read more

RSpec vs Cucumber (RSpec stories) [closed]

If you haven’t already, you might want to check out Dan North’s excellent article, What’s in a Story? as a starting point. We have two main uses for Cucumber stories. First, because the story form is very specific it helps focus the product owner’s articulation of the features he wants built. This is the “token … Read more

iOS Tests/Specs TDD/BDD and Integration & Acceptance Testing

tl;dr At Pivotal we wrote Cedar because we use and love Rspec on our Ruby projects. Cedar isn’t meant to replace or compete with OCUnit; it’s meant to bring the possibility of BDD-style testing to Objective C, just as Rspec pioneered BDD-style testing in Ruby, but hasn’t eliminated Test::Unit. Choosing one or the other is … Read more

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