importância dos testes automatizadoss
DESCRIPTION
Desenvolver software é uma luta contra complexidade. Cada linha de código que um programador escreve pode ser mais um ponto de falha no software. Para diminuir os riscos é fundamental que o programador e a equipe adotem uma cultura na escrita de testes, de preferência automatizados, para garantir que o software se comporte como esperado durante todo o ciclo de vida do desenvolvimento. Nesta apresentação explanarei a importância dos testes automatizados de acordo com a cultura ágil, os tipos de testes que podemos escrever, os benefícios obtidos a médio e longo prazo, e as dificuldades ao escreve-los. Será também apresentado algumas ferramentas úteis e relatos da minha experiência na escrita de testes no mercado de trabalhoTRANSCRIPT
![Page 1: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/1.jpg)
A importância dos testes automatizados
Rafael Ponte@rponte
Tuesday, October 18, 2011
![Page 2: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/2.jpg)
@rponte
Tuesday, October 18, 2011
![Page 3: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/3.jpg)
Tuesday, October 18, 2011
![Page 4: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/4.jpg)
antes de começarmos...
Tuesday, October 18, 2011
![Page 5: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/5.jpg)
quem aqui já programa?
Tuesday, October 18, 2011
![Page 6: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/6.jpg)
quem aqui já programa?Java? .Net? Ruby? PhP? C?
Pascal?
Tuesday, October 18, 2011
![Page 7: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/7.jpg)
e quem já trabalha na área?
Tuesday, October 18, 2011
![Page 8: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/8.jpg)
e quem escreve testes?
Tuesday, October 18, 2011
![Page 9: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/9.jpg)
eu conheço alguém que escreve...
Tuesday, October 18, 2011
![Page 10: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/10.jpg)
e acho que muitos aqui também já o conhecemeu conheço alguém que escreve...
Tuesday, October 18, 2011
![Page 11: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/11.jpg)
@yuriadamsO garoto prodígio dos testes.
Tuesday, October 18, 2011
![Page 12: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/12.jpg)
Tuesday, October 18, 2011
![Page 13: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/13.jpg)
Tuesday, October 18, 2011
![Page 14: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/14.jpg)
Tuesday, October 18, 2011
![Page 15: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/15.jpg)
ME MATA DE
ORGULHO!
Tuesday, October 18, 2011
![Page 16: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/16.jpg)
desenvolver software é uma luta contra complexidade
Tuesday, October 18, 2011
![Page 17: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/17.jpg)
toda linha de código que escrevemos pode ser um ponto de
falha
Tuesday, October 18, 2011
![Page 18: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/18.jpg)
toda linha de código que escrevemos pode ser um ponto de
falha crítico
Tuesday, October 18, 2011
![Page 19: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/19.jpg)
estudamos e aplicamos práticas para tentarmos diminuir estes
riscos
Tuesday, October 18, 2011
![Page 20: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/20.jpg)
testarTuesday, October 18, 2011
![Page 21: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/21.jpg)
por que testar?
Tuesday, October 18, 2011
![Page 22: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/22.jpg)
para verificar se o sistema se comporta como deveria
Tuesday, October 18, 2011
![Page 23: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/23.jpg)
como testar?testes manuais.testes automatizados.
Tuesday, October 18, 2011
![Page 24: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/24.jpg)
testes manuais
Tuesday, October 18, 2011
![Page 25: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/25.jpg)
$ão caros$ requer pessoal qualificado
$ requer tempo
$ requer documentação
$ repetitivos e cansativos
Tuesday, October 18, 2011
![Page 26: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/26.jpg)
o que aprendemos com desenvolvimento de software é que...
Tuesday, October 18, 2011
![Page 27: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/27.jpg)
tudo que depende do homem e é repetitivo está sujeito a
falhas
Tuesday, October 18, 2011
![Page 28: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/28.jpg)
por isso nós
automatizamos! :-)
Tuesday, October 18, 2011
![Page 29: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/29.jpg)
testes automatizados
Tuesday, October 18, 2011
![Page 30: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/30.jpg)
um programinha para testar outro programinha
Tuesday, October 18, 2011
![Page 31: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/31.jpg)
testes te trazem confiança e segurança para...
> implementar novas features> achar e corrigir bugs> refatorar código> refatorar código dos outros
Tuesday, October 18, 2011
![Page 32: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/32.jpg)
CONFIANÇA
Tuesday, October 18, 2011
![Page 33: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/33.jpg)
os testes te permitem ter...
> menor incidência de bugs> feedback rápido do que funciona> regressão de código> produtividade> melhor design do código> documentação executável
Tuesday, October 18, 2011
![Page 34: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/34.jpg)
tipos de testes testes de unidade testes de integração testes de aceitação
Tuesday, October 18, 2011
![Page 35: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/35.jpg)
testes de unidademenor unidade de código
executável
Tuesday, October 18, 2011
![Page 36: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/36.jpg)
menor unidade na
POO= método
Tuesday, October 18, 2011
![Page 37: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/37.jpg)
teste de unidade
= teste unitário
Tuesday, October 18, 2011
![Page 38: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/38.jpg)
> mais fáceis de escrever;> muito rápidos para rodar;> mais fáceis para rastrear erros;
testes de unidade normalmente são:
Tuesday, October 18, 2011
![Page 39: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/39.jpg)
que tal rodar centenas ou milhares de testes em
segundos?
Tuesday, October 18, 2011
![Page 40: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/40.jpg)
feedback quase que instantâneo! WOW!
Tuesday, October 18, 2011
![Page 41: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/41.jpg)
testes de integraçãoseu código integrado ao banco
de dados, rede, disco etc
Tuesday, October 18, 2011
![Page 42: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/42.jpg)
valida os componentes de software funcionando juntos
Tuesday, October 18, 2011
![Page 43: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/43.jpg)
valida os componentes de software funcionando juntos
Yuri Adams
teste de “maxu” vai no banco de dados!
Tuesday, October 18, 2011
![Page 44: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/44.jpg)
e assim como os testes de unidade...
Tuesday, October 18, 2011
![Page 45: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/45.jpg)
> mais fáceis de escrever;> muito rápidos para rodar;> mais fáceis para rastrear erros;
testes de integração normalmente são:
Tuesday, October 18, 2011
![Page 46: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/46.jpg)
feedback AINDA quase que instantâneo
Tuesday, October 18, 2011
![Page 47: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/47.jpg)
testes de aceitaçãoo que o usuário espera que
aconteça
Tuesday, October 18, 2011
![Page 48: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/48.jpg)
teste
Tuesday, October 18, 2011
![Page 49: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/49.jpg)
endteste
Tuesday, October 18, 2011
![Page 50: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/50.jpg)
endto
teste
Tuesday, October 18, 2011
![Page 51: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/51.jpg)
end
endto
teste
Tuesday, October 18, 2011
![Page 52: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/52.jpg)
valida o software na perspectiva do usuário
Tuesday, October 18, 2011
![Page 53: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/53.jpg)
valida o software na perspectiva
do usuário
Tuesday, October 18, 2011
![Page 54: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/54.jpg)
valida o software na perspectiva
do usuário
Tuesday, October 18, 2011
![Page 55: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/55.jpg)
> trabalhosos para escrever;> lentos para rodar;> difíceis para rastrear erros;> frágeis
testes de aceitação normalmente são:
Tuesday, October 18, 2011
![Page 56: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/56.jpg)
apesar da dificuldade para escrevê-los...
Tuesday, October 18, 2011
![Page 57: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/57.jpg)
Handerson Frota
apesar da dificuldade para escrevê-los...
Aceite os testes de aceitação!!
Tuesday, October 18, 2011
![Page 58: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/58.jpg)
ainda assim vale a pena!
Aceite os testes de aceitação!!
Handerson Frota
apesar da dificuldade para escrevê-los...
Tuesday, October 18, 2011
![Page 59: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/59.jpg)
resumindo...
Tuesday, October 18, 2011
![Page 60: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/60.jpg)
como tudo isso vai numa app real?
Tuesday, October 18, 2011
![Page 61: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/61.jpg)
Tuesday, October 18, 2011
![Page 62: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/62.jpg)
browser
app(servidor)
banco de dados
Tuesday, October 18, 2011
![Page 63: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/63.jpg)
teste de unidade
Tuesday, October 18, 2011
![Page 64: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/64.jpg)
teste de integraçãoTuesday, October 18, 2011
![Page 65: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/65.jpg)
teste de aceitação
Tuesday, October 18, 2011
![Page 66: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/66.jpg)
teste de integração
teste de unidade
teste de aceitação
Tuesday, October 18, 2011
![Page 67: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/67.jpg)
qual o melhor?
Tuesday, October 18, 2011
![Page 68: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/68.jpg)
unidade > integração ?
Tuesday, October 18, 2011
![Page 69: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/69.jpg)
nãoTuesday, October 18, 2011
![Page 70: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/70.jpg)
integração > aceitação ?
Tuesday, October 18, 2011
![Page 71: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/71.jpg)
nãoTuesday, October 18, 2011
![Page 72: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/72.jpg)
aceitação > unidade ?
Tuesday, October 18, 2011
![Page 73: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/73.jpg)
nãoTuesday, October 18, 2011
![Page 74: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/74.jpg)
depende?
Tuesday, October 18, 2011
![Page 75: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/75.jpg)
simTuesday, October 18, 2011
![Page 76: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/76.jpg)
depende da tua necessidade
Tuesday, October 18, 2011
![Page 77: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/77.jpg)
depende da tua necessidadeteste de aceitação testa TUDO.
Handerson Frota
Tuesday, October 18, 2011
![Page 78: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/78.jpg)
depende da tua necessidadeteste de aceitação testa TUDO.
Handerson Frota
Yuri Adams
teste de integração é teste de “maxu”.
Tuesday, October 18, 2011
![Page 79: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/79.jpg)
mas no geral, siga a pirâmide
Tuesday, October 18, 2011
![Page 80: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/80.jpg)
Aceitação - 10%
Integração - 40%
Unidade - 50%
Test Automation Pyramid
Tuesday, October 18, 2011
![Page 81: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/81.jpg)
que tal um pouco de prática, né?
Tuesday, October 18, 2011
![Page 82: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/82.jpg)
de maneira não automatizada
Tuesday, October 18, 2011
![Page 83: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/83.jpg)
problema:calcular fatorial de um
número
4! = 4.3.2.1 = 24
Tuesday, October 18, 2011
![Page 84: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/84.jpg)
1! ==> 12! ==> 23! ==> 6
...
Tuesday, October 18, 2011
![Page 85: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/85.jpg)
4! = 4.3.2.1 = 24
“com um algoritimo recursivo eu
resolvo isso fácil antes da novela das
7h”
Tuesday, October 18, 2011
![Page 86: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/86.jpg)
Uma função recursiva é uma função que se refere a si própria
Tuesday, October 18, 2011
![Page 87: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/87.jpg)
Tuesday, October 18, 2011
![Page 88: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/88.jpg)
como testar o código?
Tuesday, October 18, 2011
![Page 89: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/89.jpg)
1! ==> 12! ==> 23! ==> 6
...
Tuesday, October 18, 2011
![Page 90: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/90.jpg)
você escreve uma classe de teste “meia-boca”
Tuesday, October 18, 2011
![Page 91: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/91.jpg)
depois roda a classe de teste na linha de comando
Tuesday, October 18, 2011
![Page 92: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/92.jpg)
depois roda a classe de teste na linha de comando
para ver o resultado!Tuesday, October 18, 2011
![Page 93: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/93.jpg)
você testa mais um pouco...
Tuesday, October 18, 2011
![Page 94: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/94.jpg)
e roda mais uma vez para ver o resultado...
Tuesday, October 18, 2011
![Page 95: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/95.jpg)
altera mais um pouco,roda mais um pouco,verifica o resultado,
corrige aqui, corrige ali,roda de novo, ...
Tuesday, October 18, 2011
![Page 96: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/96.jpg)
e depois que tudo funciona como
esperado...
Tuesday, October 18, 2011
![Page 97: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/97.jpg)
zipa e envia pro professor, né?
Tuesday, October 18, 2011
![Page 98: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/98.jpg)
zipa e envia pro professor, né?
ainda não!!Tuesday, October 18, 2011
![Page 99: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/99.jpg)
zipa e envia pro professor, né?
falta apagar a classe “meia-boca” de teste!
Tuesday, October 18, 2011
![Page 100: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/100.jpg)
agora sim! zipa e envia pro professor!
Tuesday, October 18, 2011
![Page 101: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/101.jpg)
agora sim! zipa e envia pro professor!
Sérgio
com cópia pra mim também! ;D
Tuesday, October 18, 2011
![Page 102: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/102.jpg)
PRONTO!
Tuesday, October 18, 2011
![Page 103: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/103.jpg)
facinho, né?
Tuesday, October 18, 2011
![Page 104: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/104.jpg)
agora você pode jogar Starcraft II em paz!
Tuesday, October 18, 2011
![Page 105: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/105.jpg)
ou
Tuesday, October 18, 2011
![Page 106: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/106.jpg)
jogar XBox com seus amigos descolados
Tuesday, October 18, 2011
![Page 107: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/107.jpg)
eu me pergunto...
Tuesday, October 18, 2011
![Page 108: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/108.jpg)
e depois de todo esse esforço...
Tuesday, October 18, 2011
![Page 109: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/109.jpg)
e depois de todo esse esforço...
você DESCARTA sua classe de teste?
Tuesday, October 18, 2011
![Page 110: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/110.jpg)
e depois de todo esse esforço...
Sérgio
e daí?
você DESCARTA sua classe de teste?
Tuesday, October 18, 2011
![Page 111: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/111.jpg)
e depois de todo esse esforço...
você DESCARTA sua classe de teste?
Sérgio
e daí?o que importa é o programa rodando!
Tuesday, October 18, 2011
![Page 112: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/112.jpg)
e depois de todo esse esforço...
você DESCARTA sua classe de teste?
Sérgio
e daí?o que importa é o programa rodando!
nunca mais vou mexer nesse código de novo mesmo
Tuesday, October 18, 2011
![Page 113: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/113.jpg)
mas na vida real não é bem assim...
Tuesday, October 18, 2011
![Page 114: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/114.jpg)
você mantém o código até que o software
“morra”
Tuesday, October 18, 2011
![Page 115: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/115.jpg)
um software não morre...
Tuesday, October 18, 2011
![Page 116: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/116.jpg)
um software não morre...
até que
Tuesday, October 18, 2011
![Page 117: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/117.jpg)
um software não morre...
até quevocê tire ele de produção,
Tuesday, October 18, 2011
![Page 118: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/118.jpg)
um software não morre...
até quevocê tire ele de produção,
você apague todo o código fonte
Tuesday, October 18, 2011
![Page 119: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/119.jpg)
um software não morre...
até quevocê tire ele de produção,
você apague todo o código fonte
você apague o banco de dados
Tuesday, October 18, 2011
![Page 120: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/120.jpg)
um software não morre...
até quevocê tire ele de produção,
você apague todo o código fonte
você mate os programadores,
mate os analistas e o arquiteto
você apague o banco de dados
Tuesday, October 18, 2011
![Page 121: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/121.jpg)
um software não morre...
até quevocê tire ele de produção,
você apague todo o código fonte
você mate os programadores,
mate os analistas e o arquiteto
você apague o banco de dados
e você queime o backup e documentação
Tuesday, October 18, 2011
![Page 122: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/122.jpg)
mas pro seu azar...
Tuesday, October 18, 2011
![Page 123: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/123.jpg)
suponha que seu professor queira um algoritimo não-recursivo
Tuesday, October 18, 2011
![Page 124: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/124.jpg)
suponha que seu professor queira um algoritimo não-recursivo
#comofas
Tuesday, October 18, 2011
![Page 125: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/125.jpg)
1. você vai ter que estudar o problema de novo
Tuesday, October 18, 2011
![Page 126: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/126.jpg)
2. você tem que alterar o código atual de novo
Tuesday, October 18, 2011
![Page 127: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/127.jpg)
3. você vai ter que testa-lo de novo
Tuesday, October 18, 2011
![Page 128: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/128.jpg)
mas cadê minha classe de teste?
Tuesday, October 18, 2011
![Page 129: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/129.jpg)
eu apagueeeeeiiii?
Tuesday, October 18, 2011
![Page 130: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/130.jpg)
Tuesday, October 18, 2011
![Page 131: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/131.jpg)
que tal fazermos do jeito certo?
Tuesday, October 18, 2011
![Page 132: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/132.jpg)
que tal fazermos do jeito certo?
com testes automatizados
Tuesday, October 18, 2011
![Page 133: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/133.jpg)
jUnitassertEquals(expected, actual);
Tuesday, October 18, 2011
![Page 134: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/134.jpg)
jUnitassertEquals(4, 2+2);
Tuesday, October 18, 2011
![Page 135: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/135.jpg)
jUnitassertEquals(7, 10-4);
Tuesday, October 18, 2011
![Page 136: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/136.jpg)
vamos testar
Tuesday, October 18, 2011
![Page 137: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/137.jpg)
implementação recursiva
Tuesday, October 18, 2011
![Page 138: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/138.jpg)
1! ==> 1
primeiro caso de teste
Tuesday, October 18, 2011
![Page 139: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/139.jpg)
você escreve o teste com jUnit
Tuesday, October 18, 2011
![Page 140: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/140.jpg)
depois roda o teste...
Tuesday, October 18, 2011
![Page 141: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/141.jpg)
2! ==> 23! ==> 6
4! ==> 24 5! ==> 120
mais alguns casos de teste...
Tuesday, October 18, 2011
![Page 142: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/142.jpg)
escreva os casos de teste...
Tuesday, October 18, 2011
![Page 143: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/143.jpg)
roda mais uma vez...
Tuesday, October 18, 2011
![Page 144: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/144.jpg)
0! ==> 11! ==> 1
um caso esquecido...
Tuesday, October 18, 2011
![Page 145: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/145.jpg)
não me escapa...
Tuesday, October 18, 2011
![Page 146: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/146.jpg)
roda mais uma vez...
Tuesday, October 18, 2011
![Page 147: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/147.jpg)
PRONTO!agora você pode escrever o
algoritimo não-recursivo
Tuesday, October 18, 2011
![Page 148: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/148.jpg)
#greenbarrefatora ==> roda os testes
Tuesday, October 18, 2011
![Page 149: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/149.jpg)
facinho, né?
Tuesday, October 18, 2011
![Page 150: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/150.jpg)
primeiro escreve o código da implementação, depois escreve o de
teste... LEGAL!
Tuesday, October 18, 2011
![Page 151: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/151.jpg)
e se fosse possível escrever o teste ANTES da implementação?
Tuesday, October 18, 2011
![Page 152: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/152.jpg)
ahn?
Tuesday, October 18, 2011
![Page 153: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/153.jpg)
TDDTest Driven Development
Tuesday, October 18, 2011
![Page 154: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/154.jpg)
TDDTest Driven Development
é assim que eu evoluo minha aplicação de forma contínua
Tuesday, October 18, 2011
![Page 155: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/155.jpg)
TDDTest Driven Development
é assim que eu evoluo minha aplicação de forma contínuaeu falei sobre isso aqui ontem, ué!
Tuesday, October 18, 2011
![Page 156: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/156.jpg)
step by step
Tuesday, October 18, 2011
![Page 157: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/157.jpg)
TDD = testes
Tuesday, October 18, 2011
![Page 158: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/158.jpg)
TDD = testesnãoTuesday, October 18, 2011
![Page 159: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/159.jpg)
TDD é sobre DESIGN e MODELAGEM de código
Tuesday, October 18, 2011
![Page 160: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/160.jpg)
a bateria de testes é um brinde
Tuesday, October 18, 2011
![Page 161: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/161.jpg)
CULTURA DE TESTEScasos e casos
Tuesday, October 18, 2011
![Page 162: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/162.jpg)
Tuesday, October 18, 2011
![Page 163: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/163.jpg)
Tuesday, October 18, 2011
![Page 164: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/164.jpg)
Tuesday, October 18, 2011
![Page 165: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/165.jpg)
NEM TUDO SÃO FLORESDepois de +2 anos escrevendo testes.
Tuesday, October 18, 2011
![Page 166: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/166.jpg)
primeiro passo na consultoria
Tuesday, October 18, 2011
![Page 167: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/167.jpg)
Convencer a gerência.Seria um investimento de médio-longo prazo.
Tuesday, October 18, 2011
![Page 168: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/168.jpg)
Projeto já em andamento.Dificuldade para escrever testes.
Tuesday, October 18, 2011
![Page 169: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/169.jpg)
Infra?Não tínhamos nada pronto!
Tuesday, October 18, 2011
![Page 170: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/170.jpg)
Colaboração da equipe.Equipe de bons desenvolvedores, mas sem
experiência com testes.
Tuesday, October 18, 2011
![Page 171: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/171.jpg)
Tuesday, December 15, 2009
Zona de Conforto
Tuesday, October 18, 2011
![Page 172: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/172.jpg)
Devs. simpatizantes.Teste de integração é teste de “maxu”!
Tuesday, October 18, 2011
![Page 173: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/173.jpg)
Testes mal escritos.Você vai escrevê-los, pode ter certeza disso.
Tuesday, October 18, 2011
![Page 174: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/174.jpg)
TDD.Somente em regras de negócio complexas.
Tuesday, October 18, 2011
![Page 175: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/175.jpg)
OOP e SOLID PrinciplesSem estes conhecimentos não é tão simples ter
um bom design.
Tuesday, October 18, 2011
![Page 176: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/176.jpg)
Testes de Aceitação.Tudo ia bem, até o dia em que o número de testes cresceu demais.
Tuesday, October 18, 2011
![Page 177: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/177.jpg)
Testando cenários importantes.
Começamos do jeito certo.
Tuesday, October 18, 2011
![Page 178: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/178.jpg)
Aceitação - 10%
Integração - 40%
Unidade - 50%
Test Automation Pyramid
Tuesday, October 18, 2011
![Page 179: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/179.jpg)
More, more...Testes com granularidade fina demais.
Tuesday, October 18, 2011
![Page 180: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/180.jpg)
Integração - 30%
Unidade - 40%
Aceitação - 30%
Test Automation Pyramid Square
Tuesday, October 18, 2011
![Page 181: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/181.jpg)
Mantê-los se tornou caro.Frágeis, feedback demorado, falsos negativos e difícil rastrear erros.
Tuesday, October 18, 2011
![Page 182: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/182.jpg)
Nos tornamos mais criteriosos.
Tuesday, October 18, 2011
![Page 183: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/183.jpg)
IMPACTODepois de +2 anos escrevendo testes.
Tuesday, October 18, 2011
![Page 184: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/184.jpg)
PRODUTIVIDADE.Baixa no início. Melhora durante os Sprints.
Tuesday, October 18, 2011
![Page 185: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/185.jpg)
Qualidade no software. Menor incidência de bugs e correções rápidas.
Tuesday, October 18, 2011
![Page 186: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/186.jpg)
De 100% para 25%.Melhoramos nossas estimativas.
Tuesday, October 18, 2011
![Page 187: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/187.jpg)
Gerência.Satisfeita com a produtividade de alguns
projetos, decepcionada com outros.
Tuesday, October 18, 2011
![Page 188: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/188.jpg)
Equipe mais madura.Perceberam a importância real dos testes.
Tuesday, October 18, 2011
![Page 189: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/189.jpg)
CONCLUSÃO
Tuesday, October 18, 2011
![Page 190: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/190.jpg)
Você só percebe os benefícios dos testes entre
6 meses e 1 ano
Tuesday, October 18, 2011
![Page 191: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/191.jpg)
não existe uma receita de bolo para desenvolver software
Tuesday, October 18, 2011
![Page 192: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/192.jpg)
mas simum conjunto de princípios e
práticas que podem te ajudar a desenvolver melhor
Tuesday, October 18, 2011
![Page 193: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/193.jpg)
permita que sua equipe trabalhe melhor
Tuesday, October 18, 2011
![Page 194: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/194.jpg)
permita que sua empresa entregue software melhor
Tuesday, October 18, 2011
![Page 195: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/195.jpg)
permita-se ser um profissional melhor
Tuesday, October 18, 2011
![Page 196: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/196.jpg)
use testes automatizados
Tuesday, October 18, 2011
![Page 197: Importância dos testes automatizadoss](https://reader033.vdocuments.pub/reader033/viewer/2022051610/549c0fa0b47959b7318b4621/html5/thumbnails/197.jpg)
testes automatizados
eu aprovo!Tuesday, October 18, 2011