1
TDDIn Ionic Framework
Nikola Brežnjak, M.Sc
EXPECT
THEUNEXPECTED
INTRODUCTION TO
2
Do you test your code?
3
Do you test your code?<rhetorical-question>
</rhetorical-question>
10
AGENDAwait, you said this will be a short presentation!?
Your Title Here Company members share
a common
Your Title Here Company members share
a common
01 Theory 02 Examples
11
What is TDD?Test Driven Development, duh!?
12
Unit Testing !== TDDYou don’t say, Sherlock
17COMMON MISCONCEPTIONSso we make sure my.getCurrPage() == your.getCurrPage()
02
0306
01
05 04
You Can’t Write Tests Until You Know the Design
ALWAYS Refactor?
Write all tests before any code?
Time Consuming
No #6
Unit test all the things
19
PREREQUISITESCan’t have a car without a driver. Oh, wait!, it’s 2016!
21
describe [thing]it should [do sth]
BDD style
24
TAKE THE RED PILL