types of tests

17
Types of tests

Upload: carlos-garcia

Post on 24-Dec-2014

204 views

Category:

Technology


2 download

DESCRIPTION

You can't test everything. This presentation helps you choose what tests to implement so you can the most out of what you have.

TRANSCRIPT

Page 1: Types of tests

Types of tests

Page 2: Types of tests

What is the coverage of our tests?

in lines of code?

in number of test cases? 0%

Page 3: Types of tests

For 100% test coverage, you just

need infinite resources!!!

Page 4: Types of tests

We don't havethat!!!

Page 5: Types of tests

do the most with

what you have

Page 6: Types of tests

choose

Page 7: Types of tests

Unit

Integration

Functional

Page 8: Types of tests

Unit

Integration

Functional

Page 9: Types of tests

Unit

Integration

Functional

Page 10: Types of tests

Unit

Integration

Functional

Page 11: Types of tests

Unit

Integration

Functional

imple

menta

tion co

st

fast

feedback

fragili

ty

runtim

e

precis

e feedback

robustn

ess

simplic

ity

cove

rage

Page 12: Types of tests

Unit

Integration

Functional

● have the best cost benefit ratio● should be part of design and

development tasks● should run often● simulate interactions with other

components by the use of mocks● allow developers to simulate corner

cases

Page 13: Types of tests

Unit

Integration

Functional

● exercise the integration between components

● can test sql queries ● take more time● first option when a dependency

can't be mocked● since dependencies have to be

provided, are expensive

Page 14: Types of tests

Unit

Integration

Functional

● can't see the application● tests how an actor interacts with the

app○ it could be a person○ or another system

● corner cases should not be implemented at this level

● are great to show to a stakeholder

Page 15: Types of tests

Unit

Integration

Functional

Page 16: Types of tests

do the most with

what you have

Page 17: Types of tests

Thank you!