Behavior Driven Development Flashcards

1
Q

What does BDD stand for?

A

Behavior Driven Development

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the main focus of BDD?

A

The main focus of BDD is implementing an application by describing its behavior from the stakeholders’ perspective.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does Dan North define BDD?

A

BDD is a second-generation, outside-in, pull-based, multi-stakeholder, multi-scale, high-automation agile methodology.” It describes a cycle of interactions with well-defined outputs that result in delivering well-functioning, tested, valuable software.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

From which methodologies is BDD derived?

A

BDD is derived from Extreme Programming (especially Test Driven Development and Continuous Integration), Acceptance Test-Driven Planning, Lean Principles, and Domain Driven Design.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are some influences on BDD?

A

Neurolinguistic Programming (NLP) and Systems Thinking.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the three main activities of BDD?

A

The three main activities are Discovery (finding examples), Formulation (turning examples into scenarios), and Automation (automating the scenarios).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why is BDD considered “TDD done right”?

A

BDD is considered “TDD done right” because it focuses on behavior rather than implementation, leading to better maintainable tests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the ‘3 Amigos’ workshop?

A

It is a workshop where at least one person from the perspectives of Business, Test, and Development participates to discuss and discover examples.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Example Mapping?

A

It is a technique used for discovering and organizing examples during a ‘3 Amigos’ workshop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which language is used for describing scenarios in BDD?

A

The Gherkin language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Name two tools used for automation in BDD.

A

Cucumber for Java and SpecFlow for .NET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

From whose perspective are user stories written?

A

User stories are written from the perspective of the system’s user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the main components of a user story structure?

A

Title, Narrative (As a [role], I want [feature], So that [benefit]), and Acceptance Criteria (presented as Scenarios).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What should the title of a story describe?

A

The title should describe an activity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What should the narrative of a story include?

A

The narrative should include a role, a feature, and a benefit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What should a scenario title indicate?

A

The scenario title should indicate what’s different.

17
Q

How should a scenario be described?

A

A scenario should be described in terms of Givens, Events, and Outcomes.

18
Q
A