Test First Development Flashcards
give a release pipeline (4)
local development
dev
test
live
describe test first development
tests serve as a mark of progress and specification
describe the outside in approach
go through the GUI
give the drawbacks of the outside in approach (2)
costly
difficult
describe the middle out approach
anything that you can do at the service API level, you can do at the GUI
what is a driver
calls the class to test rather than the one that depends on it.
This is test after development
describe test after development
test each class then the one that depends on it
what is a stub
if A depends on B but B isn’t ready, use a stub of B.
describe test first development
write tests for everything, then write the tests. use stubs etc
give the test first process (5)
define behaviours and acceptance tests
make tests compile using stubs
run tests
implement code
run tests
what is wishful thinking
write tests for the perfect production code