TDD
Test Driven Development
Vitor Barbosa
Ideais - Checkout
Apresentação
TDD
O que é ?
... e o que não é.
Para que serve ?
... e de onde veio ?
Vantagens
Simplicidade
e
Design evolutivo
Feedback instantâneo
Mudanças
Blindagem
Desculpinhas
Consequências
Realmente vale a pena ?
" If it's worth building, it's
worth testing.
If it's not worth testing, why
are you wasting your time
working on it? "
Cenário atual
Nem tudo são flores :(
Como funciona ?
Categorias
Teste de Unidade
Teste de Integração
Teste de Sistema
Ciclo
Red - Green - Refactor
Princípios
KISS
Keep it simple, stupid
Princípios
YAGNI
You aren't gonna need it
Princípios
DRY
Don't repeat yourself
O que testar ?
" You should test with a
purpose and know why you
are testing something and to
what level it needs to be
tested "
Test First !
Baby Steps
Assert First
Dados de Teste
Complexidade
por Iteração
Mocks e Stubs
Testes Isolados
Fake it, till you
make it
Refatoração
Mitos e Confusões
Na Prática
TDD aplicado
Caso:
Representação de unidade monetária.
FAQ
Qual é a duração do ciclo
Red-Green-Refactor ?
FAQ
Como funciona TDD em
sistemas legados ?
Perguntas ?
fim (:
Referencias
● martinfowler.com
● agiledata.org
● improveit.com.br
● imasters.com.br
- Test Driven Development : By Example - Kent Beck

Tdd