Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Testes Unitários, da teoria à prática!
Search
Alex Alves
June 13, 2019
Technology
0
1.1k
Testes Unitários, da teoria à prática!
Testes Unitários, utilizando .Net, trazendo conceitos teórios para a prática.
Alex Alves
June 13, 2019
Tweet
Share
Other Decks in Technology
See All in Technology
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
68k
コミュニティが変えるキャリアの地平線:コロナ禍新卒入社のエンジニアがAWSコミュニティで見つけた成長の羅針盤
kentosuzuki
0
130
Context Engineeringの取り組み
nutslove
0
370
AIエージェントに必要なのはデータではなく文脈だった/ai-agent-context-graph-mybest
jonnojun
0
130
プロポーザルに込める段取り八分
shoheimitani
1
500
Agile Leadership Summit Keynote 2026
m_seki
1
650
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
2
380
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
10k
2026年、サーバーレスの現在地 -「制約と戦う技術」から「当たり前の実行基盤」へ- /serverless2026
slsops
2
260
SREじゃなかった僕らがenablingを通じて「SRE実践者」になるまでのリアル / SRE Kaigi 2026
aeonpeople
6
2.5k
学生・新卒・ジュニアから目指すSRE
hiroyaonoe
2
650
Greatest Disaster Hits in Web Performance
guaca
0
270
Featured
See All Featured
First, design no harm
axbom
PRO
2
1.1k
Exploring anti-patterns in Rails
aemeredith
2
250
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
150
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
730
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
Building the Perfect Custom Keyboard
takai
2
690
Docker and Python
trallard
47
3.7k
Transcript
TESTES UNITÁRIOS Da Teoria à Prática Alex Alves Silva
ALEX ALVES Pós graduando em Arquitetura de Software @ IGTI
Graduado em Ciência da Computação @ UIT Desenvolvedor .Net @ BHS SOLUÇÕES DIGITAIS #TestesUnitarios @alexalves_85598 alexalves2501
Agenda • Tipos de testes • O que são testes
unitários? • Por que desenvolver testes? • Ferramentas para testes • 5 princípios do Teste de Unidade • Hands-on • Conclusão
Tipos de Testes Caixa Branca Caixa Preta Entrada e Saída
Lógica Interna
O que são testes unitários? É o teste da menor
parte testável de um programa
Por que desenvolver testes? - Automatizar - Assegurar funcionamento de
regras - Baixo custo - Rápida execução - Incentiva refatoração
None
Ferramentas para teste
5 princípios dos testes de unidade 1. Desenvolva código testável
2. Saiba o que testar 3. Comece pelo domínio 4. Utilize técnicas 5. Adote cultura de testes - Clean code - Comportamento de função - Regras de negócio - Red, Green and Refactor - TDD, BDD e ATDD
Hands-on
Hands-on https://github.com/alex250195/TestesUnitarios
Conclusão É fácil de criar Protege contra falhas É fácil
de incluir no pipeline de build Garante qualidade
Dúvidas?
Obrigado!
[email protected]