Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
TDD will Set You Free!
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
James Bender
January 15, 2017
Technology
32
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
TDD will Set You Free!
V 2.2.0
James Bender
January 15, 2017
More Decks by James Bender
See All by James Bender
JavaScript is Not a Dirty Word
jamesbender
0
100
Level-Up Your Test-Fu with BDD & SpecFlow
jamesbender
0
61
Other Decks in Technology
See All in Technology
Rust で関数型ドメインモデリング
takonda
0
140
「事実」を「計測」して、「解釈」する 〜AWS Lambdaのメモリ最適解の見つけ方〜
maimyyym
0
170
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
4.9k
Claude Code本は、どのように執筆チームで書かれたか
oikon48
1
380
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
430
SAENM ~Jupyterで残すPoCの試行錯誤、未来の自分と仲間を助ける記録!~
terapyon
0
110
JAWSUG TOHOKU 青森支部 「LoGoチャット」のAWS移行で 乗り越えたこと
taketakekaho
0
330
大型犬好きによるPugの紹介
yamanoku
1
160
How to Design Configuration for Rails Applications
willnet
1
770
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
1
1.8k
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
580
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
390
Featured
See All Featured
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
310
30 Presentation Tips
portentint
PRO
1
430
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
270
Un-Boring Meetings
codingconduct
0
460
Making Projects Easy
brettharned
120
6.8k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
My Coaching Mixtape
mlcsv
0
360
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
330
From π to Pie charts
rasagy
1
400
Transcript
TDD Will Set You Free! James Bender Product Manager Infragistics
@JamesBender
TDD as… … a development practice. … a design methodology.
TDD as a Development Practice: Workflow Specifications Code Tests
TDD as a Development Practice: Workflow Specifications Code Tests
Red, Green, Refactor • Red – Start by writing a
failing test • Green – Write just enough code to make test pass • Refactor – Optimize your code for readability, maintainability and quality
The Benefits of TDD
The Benefits of TDD
The Benefits of TDD
The Benefits of TDD
What is a Unit Test?
Characteristics of a unit test
Characteristics of a unit test
Characteristics of a unit test
Demo: Tic-Tac-Toe • Create a library to determine the winner
of a Tic-Tac-Toe game • Input is a multidimensional (3 X 3) array of string • Results – Returns the winner token (X || O) as a string – Returns an empty String if no winner but moves still available – If the game is a stalemate return an ‘S’
Dependency Injection
Mocking
Something for the managers
Cost of fixing a defect and when
MS & IBM
QA
Working with the QA department
Unit Testing Frameworks • Nunit • MS Test (Microsoft) •
xUnit • SpecFlow (really for BDD)
Mocking Frameworks • Moq • Rhino Mocks • JustMock •
Type Mock
Dependency Injection Frameworks • Ninject • Structure Map • AutoFac
• Unity • Castle
Want to learn more? Thank you! • www.JamesCBender.com • github.com/JamesBender
•
[email protected]
• Twitter: @JamesBender • hallwayconversations.com • New Book on Angular/ASP.NET 5 coming in 2017!