Download - Xunit testpatterns
Transcript
![Page 1: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/1.jpg)
xUnit Test Patterns
Gerard Meszaros
![Page 2: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/2.jpg)
SUT
Sistema
Componentes
Classes
Métodos
![Page 3: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/3.jpg)
Test Smells
![Page 4: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/4.jpg)
Project Smell: Desenvolvedores não escrevem testes
• Sintoma:– Muitos bugs em produção
• Impacto:– Adicionar novas funcionalidades será mais difícil
• Causas:– Prazos agressivos– Desenvolvedores com poucos conhecimentos para
escrever testes de maneira eficiente– Código difícil de testar– Estratégia de automação de testes inadequada
![Page 5: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/5.jpg)
Objetivos da automação de testes
![Page 6: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/6.jpg)
Princípios da Automação de Testes
![Page 7: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/7.jpg)
Ariane 5
![Page 8: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/8.jpg)
Ariane 5
![Page 9: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/9.jpg)
Testes Obscuros
![Page 10: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/10.jpg)
Testes obscuros
![Page 11: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/11.jpg)
Test Specific Subclass
![Page 12: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/12.jpg)
Test Specific Subclass
![Page 13: Xunit testpatterns](https://reader036.vdocuments.com.br/reader036/viewer/2022062418/55632b61d8b42ad7398b4f78/html5/thumbnails/13.jpg)
Test Specific Subclass