14 votes

What levels to test on with BDD/Cucumber?

If you can answer the question, "Can you give me an example of how X should behave?" then you can do BDD. So, if you want to do BDD at a unit level, think of some examples of how that class or unit ...
Lunivore's user avatar
  • 4,242
8 votes
Accepted

Migrate legacy requirements to BDD

I made the mistake of stripping a room down to the studs when I replaced its windows. It's an old house. The room was in bad shape. At every step along the way, I ran into issues. An old pipe crumbled ...
Scant Roger's user avatar
  • 9,048
8 votes
Accepted

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

You are correct. BDD does not eliminate problems with language ambiguity - not at all. As others pointed out, the snippets that get translated need to be matched by properly defining them, but this ...
Frank's user avatar
  • 14.4k
5 votes
Accepted

How can I unit test this code

The simple answer is probably "you can't unit test this code". You say yourself that the functions are too long and that they're doing multiple tasks. Therefore you have two choices: Don't write unit ...
Philip Kendall's user avatar
4 votes

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

When something is written in “natural language” this can mean a number of things: This is literally English. As English is a very ambiguous and imprecise language, this input mode is unsatisfying in ...
amon's user avatar
  • 134k
3 votes

Is Cucumber appropriate for expansive corner case specification?

-- This answer was written in response to the origional version of the question which read : "So, is using Cucumber to (near)exhaustively define complex interactions of requirements by example an ...
Ewan's user avatar
  • 74.4k
2 votes
Accepted

Springboot (Java) - Is mandatory for BDD the use of Cucumber?

I was wondering if its a requirement to consider BDD the use of Cucumber framework or other framework of test abstraction. I will start by answering this question. Cucumber (or SpecFlow or any ...
Greg Burghardt's user avatar
2 votes

What is the best practice for BDD?

Sometimes a business operation simply requires a large number of steps. You want to avoid multiple sequences of Given, When followed by Then steps in a single scenario. A "When" for one ...
Greg Burghardt's user avatar
1 vote

What is the best practice for BDD?

It's not really a technical problem, it's a "design a system which is understandable" problem. You would like to be able to describe your system like: Given the **Thing** is in state **X** ...
Ewan's user avatar
  • 74.4k
1 vote

What levels to test on with BDD/Cucumber?

I use BDD at as many levels as possible, using the same scenarios. First I start with writing and validating the scenarios with stakeholders. Then I use the scenarios to drive development of the ...
Michael Osofsky's user avatar
1 vote

What levels to test on with BDD/Cucumber?

What levels to test on with BDD/Cucumber? if possible prefer to implement automated tests via an api layer instead of gui layer because gui tests are often more expensive-to-maintain/fragile than api ...
k3b's user avatar
  • 7,508
1 vote

What levels to test on with BDD/Cucumber?

Ask yourself, what does the BDD acronym stand for? Behaviour Driven Development is not a testing methodology, it is development methodology that includes testing as a first class capability; ...
Martin Spamer's user avatar
1 vote

Should I unit test my Cucumber helper functions/classes?

I would say no, for the same reason you don't write unit tests for unit tests. Tests are written to verify functionality. They should be considered part of the functionality itself: when you change ...
Mark Thomas's user avatar
1 vote

BDD - how to measure value / ROI of collaboration

It is difficult to compare development methods this way. You can have two teams, each of which uses a different method, both of which are developing the same software, and measure the total amount of ...
Frank Hileman's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible