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
1.2k
0
Share
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
Other Decks in Technology
See All in Technology
運用を見据えたAIエージェント設計実践
amacbee
0
570
大学生が本気でDatabricksを活用してDiscordサークルをデータ駆動させてみた
phantomjuju
1
310
新規ゲーム開発におけるAI駆動開発のリアル
202409e2
0
440
AI フレンドリーなエラー監視を TypeScript で実現する
shinyaigeek
2
200
PHP と TypeScript の型システム比較:AI 時代の「型」は誰のためにあるのか? #frontend_phpcon_do / frontend_phpcon_do_2026
shogogg
1
210
TypeScript Compiler APIとPHP-Parserを活用し、TypeScriptとPHPで型を共有する
shuta13
0
300
TROCCOで始めるクラウドコストを民主化するためのFinOps
tk3fftk
2
510
インフラが苦手でも大丈夫! 紙芝居 Kubernetes -WWGT 10周年編-
aoi1
1
320
電子辞書Brainをネットに繋げてみた(自力編)
raspython3
0
400
Anthropic AIネイティブ・スタートアップ構築のプレイブック を理解する
nagatsu
0
230
オンコールの負荷軽減のためのBits Assistant 活用方法 / How to Use Bits Assistant to Reduce the Workload on On-Call Staff
sms_tech
1
360
Java正規表現エンジン(NFA)の仕組みと パフォーマンスを維持するための最適化手法
takeuchi_132917
0
160
Featured
See All Featured
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.5k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
230
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.9k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
280
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
240
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
3.3k
First, design no harm
axbom
PRO
2
1.2k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Designing Powerful Visuals for Engaging Learning
tmiket
1
390
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
240
What's in a price? How to price your products and services
michaelherold
247
13k
Design in an AI World
tapps
1
220
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]