Test First Development Flashcards

1
Q

give a release pipeline (4)

A

local development

dev

test

live

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

describe test first development

A

tests serve as a mark of progress and specification

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

describe the outside in approach

A

go through the GUI

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

give the drawbacks of the outside in approach (2)

A

costly

difficult

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

describe the middle out approach

A

anything that you can do at the service API level, you can do at the GUI

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

what is a driver

A

calls the class to test rather than the one that depends on it.

This is test after development

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

describe test after development

A

test each class then the one that depends on it

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

what is a stub

A

if A depends on B but B isn’t ready, use a stub of B.

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

describe test first development

A

write tests for everything, then write the tests. use stubs etc

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

give the test first process (5)

A

define behaviours and acceptance tests

make tests compile using stubs

run tests

implement code

run tests

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

what is wishful thinking

A

write tests for the perfect production code

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