Top Banner
Types of tests
17

Types of tests

Dec 24, 2014

Download

Technology

CarLos García

You can't test everything. This presentation helps you choose what tests to implement so you can the most out of what you have.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
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!