Questions tagged [bdd]
BDD stands for "Behavior-Driven Development," a software development style that encourages cooperation between developers and stakeholders through identifying and exploring different examples of how a system or smaller element of code might work from a user's perspective.
19
questions
33
votes
4
answers
6k
views
Relation between BDD and TDD
What is the relation of BDD and TDD?
From what I understood BDD adds two main things over TDD: tests naming (ensure/should) and acceptance tests. Should I follow TDD during development by BDD? If yes,...
25
votes
4
answers
23k
views
How to use unit tests when using BDD?
I am trying to understand BDD. I've read some articles and as I understood BDD is "the next step" from TDD.
I say that because I find both to be very similar, and as I could read in this ...
70
votes
7
answers
18k
views
Is it sufficient to use acceptance and integration tests instead of unit test?
Short introduction to this question. I have used now TDD and lately BDD for over one year now. I use techniques like mocking to make writing my tests more efficiently. Lately I have started a ...
250
votes
8
answers
177k
views
What is the difference between writing test cases for BDD and TDD? [duplicate]
I have been learning writing test cases for BDD (Behavior Driven Development) using specflow. If I write comprehensive tests with BDD, is it necessary to write TDD (Test Driven Development) test ...
13
votes
6
answers
5k
views
What is the role of QA in a BDD project?
If running a project using BDD with 100% coverage of user stories with automated acceptance tests, what would be the role of a tester / quality assurance person?
I guess I am imagining that ...
2
votes
2
answers
527
views
Does the "Pyramid of tests" contradict the idea of tests focusing on behaviour?
I am talking about these two testing strategies :
Have a pyramid of tests (with many more unit tests than high-level tests), because high level tests are harder to maintain and slower (see also : ...
1
vote
1
answer
436
views
Have I understood the term Honeycomb correctly?
Following on from my previous question and the comments under the accepted answer: One Acceptance Test project per layer or one Acceptance Test project per Bounded Context
I have done a lot of ...
20
votes
7
answers
5k
views
Is it a good idea to write all possible test cases after transforming the team to TDD to achieve a full coverage?
Assume we have a large enterprise-level application without any unit/functional tests. There was no test-driven development process during the development due to very tight deadlines (I know we should ...
12
votes
4
answers
5k
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 ...
11
votes
1
answer
1k
views
How to use BDD to unit test a compiler?
My team is writing a compiler for a domain-specific language (DSL) which will be integrated into an IDE. Right now, we are focused on the analysis phase of the compiler. We are not using any existing ...
10
votes
3
answers
2k
views
What arguments can I use to "sell" the BDD concept to a team reluctant to adopt it?
I am a bit of a vocal proponent of the Behaviour Driven Development methodology (aka BDD). I've been applying BDD for a couple of years now, and have adopted StoryQ as my framework of choice when ...
7
votes
3
answers
16k
views
How do you unit test a User Interface? [closed]
I use JavaScript with JQuery for a Rails application. I have some dynamic behaviour in this one. As a Ruby developper, I like TDD/BDD, specialy with RSpec. For the moment, I test my JavaScript manualy....
6
votes
2
answers
313
views
Behaviour driven development IRL [closed]
Did any of you use behavior driven development in your projects?
The concept and tools for it sound great. But was it easy to introduce and then stick to it? Did it lead to significant and visible ...
6
votes
2
answers
2k
views
Functional testing and Acceptance testing leading to redundant code
What I know is:
A Functional test aims to test a single component (like a WebApp's Controller) from the point of view of the developer. => Did I achieve all the requirements to make it work well?
An ...
5
votes
5
answers
2k
views
"TDD is about design, not verification"; concretely, what does that mean?
I've been wondering about this. What do we exactly mean by design and verification.
Should I just apply TDD to make sure my code is SOLID and not check if it's external behaviour is correct?
Should ...
4
votes
3
answers
435
views
Is it practical to retroactively write specifications documenting a system via automated acceptance tests?
If a project was coded without much (or any) formal documentation and is without unit tests, does it make any sense to use tools like Fitnesse and SpecFlow to write automated acceptance tests as the ...
0
votes
3
answers
1k
views
Should I pass an ID number from the feature file?
Say I have a domain object like this:
public class Customer
{
private Guid _id;
private string _name;
private Address _address;
public Customer (Guid id, string name, Address address)...
0
votes
2
answers
159
views
Testing a class that only has one field only that is an ID number
I am trying to incorporate BDD into the teams working practices to make interactions with Business Analysts more effective. I recently asked this question: Should I pass an ID number from the feature ...
-1
votes
1
answer
505
views
One Acceptance Test project per layer or one Acceptance Test project per Bounded Context
This link (http://www.taimila.com/blog/ddd-and-testing-strategy/) says: "Feature tests should depend only on the application layer" i.e. presentation layer.
I am trying to understand how BDD fits in ...