Questions tagged [cucumber]

Cucumber is a tool for running automated acceptance tests written in a behavior-driven development (BDD) style. From Wikipedia: http://en.wikipedia.org/wiki/Cucumber_%28software%29

Cucumber is a tool for running automated acceptance tests written in a behavior-driven development (BDD) style. Cucumber is written in the Ruby programming language. Cucumber projects are available for other platforms beyond Ruby. Some use Ruby Cucumber with a bridge into the target language (e.g. cuke4php and cuke4lua). Others use the Gherkin parser but implement everything else in the target language. Cucumber allows the execution of feature documentation written in business-facing text.

From Wikipedia: cucumber

24 questions
12
votes
5 answers

Are RSpec and Cucumber really worth it?

I know most RoR programmers are testing addicts and I understand the advantages of a large testing suite but when I start testing, I never get such a large suite and I always wonder "Am I testing the right way? Are there really efficient?". I'm…
Cydonia7
  • 389
  • 1
  • 3
  • 11
11
votes
4 answers

What levels to test on with BDD/Cucumber?

I'm currently getting into BDD/Cucumber and I ask myself: On which levels is it good to use? There are the test levels (from the testing pyramid): User Interface Integration Unit You can apply tests on various levels and fields in the application…
nepa
  • 264
  • 2
  • 9
11
votes
1 answer

Migrate legacy requirements to BDD

Q: What is the best way to move a large company to Cucumber with at least 15 years of legacy software requirements maintained in a requirements database? Currently considering: 1) Migrate Everything Downside: we don't have unlimited time/budget, we…
Ryan Marsh
  • 113
  • 5
9
votes
3 answers

How does Behavior Driven Development improves clarity when natural languages are ambiguous?

I'm currently exploring BDD test frameworks like cucumber and I find it curious when people say since the feature files are in simple natural language it improves clarity and gives a clear vision but, isn't natural language the cause for most…
Raghuram8892
  • 101
  • 4
7
votes
2 answers

Gherkin: What is a reasonable number of scenarios per feature?

I'm keen to get thoughts on a reasonable number of scenarios per feature in Gherkin. At what point do you start to thing about re-organising the feature to keep the number of scenarios at a manageable level?
David Osborne
  • 405
  • 4
  • 8
7
votes
2 answers

How to organize unit/integration test in BDD

So finally after reading a lot, I have understood that the difference between BDD and TDD is between T & B. But coming from basic TDD background, what I used to was, first write unittest for database models write test for views (at this point…
whatf
  • 231
  • 2
  • 4
7
votes
1 answer

How to edit existing user stories

I'm quite new to working in Agile and with user stories and scenarios in the BDD tool Cucumber and ideally I'll need to go on a course of all of this. I have a set of user stories that need to be edited for an upcoming release. As an example one of…
fdama
  • 71
  • 2
5
votes
1 answer

Is Cucumber appropriate for expansive corner case specification?

Question So, is using Cucumber to (near)exhaustively define complex interactions of requirements by example an abuse of the tool? Question Setup Is it appropriate use of Cucumber (or any other specification by example tool) for documenting the…
Sled
  • 1,868
  • 2
  • 17
  • 24
5
votes
0 answers

Can integration tests be run asynchronously with Maven?

Because I work at a company with lots and lots of computers, I find it to be a little ironic that it takes half an hour to cut a release of the latest version of our software. The bottleneck seems to be integration tests run by Maven, and the…
Peter Turner
  • 6,897
  • 1
  • 33
  • 57
5
votes
1 answer

BDD - how to measure value / ROI of collaboration

When considering the value or ROI that we reap from our efforts in implementing and using BDD it is realitively straight forward to measure your savings for the test automation element. You can compare the old manual test design and execution times…
mac_attack
  • 51
  • 1
5
votes
2 answers

How abstract should you get with BDD

I was writing some tests in Gherkin (using Cucumber/Specflow). I was wondering how abstract should I get with my tests. In order to not make this open-ended, which of the following statements is better for BDD: Given I am logged in with email…
Newton
  • 151
  • 4
5
votes
1 answer

Using Cucumber with Page objects

We are using Cucumber in our application after we previously used Selenium. Cucumber is far better than Selenium, but it may seem to be complicated since has to write gherkin, step definitions may be page objects. We are using Celerity with JRuby.…
TPReddy
  • 51
  • 3
4
votes
2 answers

At which architecture level are you running BDD tests (e.g. Cucumber)

I have in the last year gotten quite fond of using SpecFlow (which is a .NET port of Cucumber) I have used it both to test a ASP.NET MVC application at the web layer, i.e. using browser automation, but also at the controller layer. The first gives…
Pete
  • 8,916
  • 3
  • 41
  • 53
4
votes
2 answers

BDD, Cucumber best practices

I'm trying to understand some best practices when it comes to BDD and Cucumber. I've only recently started to use it, and the first feature I have written a test for is testing a search feature, more specifically how a Repository layer integrates…
PDStat
  • 783
  • 1
  • 6
  • 9
4
votes
5 answers

Interesting questions about Behaviour-Driven Development

For my master thesis at Software Engineering, I want to investigate in the new development technique BDD (Behaviour-Driven Development). In my opinion this technique could really improve on customer satisfaction, code coverage and bugs because of…
1
2