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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
生成AIを活用した音声文字起こしシステムの2つの構築パターンについて
miu_crescent
PRO
3
210
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
270
コミュニティが変えるキャリアの地平線:コロナ禍新卒入社のエンジニアがAWSコミュニティで見つけた成長の羅針盤
kentosuzuki
0
130
SREのプラクティスを用いた3領域同時 マネジメントへの挑戦 〜SRE・情シス・セキュリティを統合した チーム運営術〜
coconala_engineer
2
670
20260204_Midosuji_Tech
takuyay0ne
1
160
AI駆動開発を事業のコアに置く
tasukuonizawa
1
290
Codex 5.3 と Opus 4.6 にコーポレートサイトを作らせてみた / Codex 5.3 vs Opus 4.6
ama_ch
0
180
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
17k
小さく始めるBCP ― 多プロダクト環境で始める最初の一歩
kekke_n
1
460
SRE Enabling戦記 - 急成長する組織にSREを浸透させる戦いの歴史
markie1009
0
130
Agent Skils
dip_tech
PRO
0
120
2026年、サーバーレスの現在地 -「制約と戦う技術」から「当たり前の実行基盤」へ- /serverless2026
slsops
2
260
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
What's in a price? How to price your products and services
michaelherold
247
13k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
Become a Pro
speakerdeck
PRO
31
5.8k
AI: The stuff that nobody shows you
jnunemaker
PRO
2
270
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
52
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Building the Perfect Custom Keyboard
takai
2
690
Music & Morning Musume
bryan
47
7.1k
Google's AI Overviews - The New Search
badams
0
910
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]