Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

-2
votes
1answer
101 views

How can I unit test this code [closed]

How can I unit test a codebase which contains classes that includes two or three methods. In general these methods are too long. The methods contain lots of tasks like filtering datasets and a ...
6
votes
4answers
1k views

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 ...
3
votes
1answer
95 views

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 ...
2
votes
1answer
132 views

Should I unit test my Cucumber helper functions/classes?

I'm very new at writing Cucumber tests. I'm writing Ruby helper functions to assist Cucumber step definitions. Should there be a separate set of tests to test my helper functions i.e. unit tests? The ...
9
votes
3answers
435 views

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 ...
3
votes
0answers
83 views

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 ...
5
votes
1answer
199 views

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 ...
11
votes
1answer
332 views

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 ...
2
votes
2answers
119 views

Which style to use for features that are not directly driven by humans when using BDD Gherkin language?

Should they be written same way as human workflows, first person "I have entered..." style language etc.? Is the user effectively a gender-less "AI"?
4
votes
2answers
4k views

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 ...
6
votes
2answers
1k views

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 ...
3
votes
3answers
331 views

Should selenium tests be written in imperative style?

Is an automation tester supposed to know concepts of OOPS and design patterns to write Tests in a way where changes & code re-use are possible? For example, I pick up Java to write cucumber step ...
2
votes
3answers
5k views

Should cucumber step definitions in Java be static methods or instance methods?

We are new to using cucumber with selenium to write automated test suites. Our initial approach was to have one java class per feature file. Now we added instance methods in each class for ...
6
votes
2answers
2k views

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 ...
7
votes
1answer
289 views

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 ...
2
votes
3answers
368 views

What is a legitimate reason to use Cucumber?

I've worked in several contracts where the client used Cucumber and I've often felt that the testing suite didn't really have a place in our stack. From what I understand, business analysts/non-...
4
votes
2answers
585 views

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 ...
4
votes
5answers
1k views

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 ...
4
votes
1answer
1k views

Using Cucumber with Page objects

We are using Cucumber in our application, but previously used Selenium. Cucumber is far better than Selenium, but it may seems to be complicated since has to write gherkin, step definitions may be ...
11
votes
5answers
6k views

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 ...
0
votes
1answer
657 views

Cucumber Web Interface for business

I am trying to find a way to make the projects I work on more transparent to the business size, even though backend programming is not quite visible all the time. So in order to this I want to try ...
4
votes
2answers
1k views

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, ...