introduction to tdd · bdd style. 22. 23. take the red pill 24. 25. don't always test my code...
TRANSCRIPT
![Page 1: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/1.jpg)
1
TDDIn Ionic Framework
Nikola Brežnjak, M.Sc
EXPECT
THEUNEXPECTED
INTRODUCTION TO
![Page 2: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/2.jpg)
2
Do you test your code?
![Page 3: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/3.jpg)
3
Do you test your code?<rhetorical-question>
</rhetorical-question>
![Page 4: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/4.jpg)
4
CLTDD
![Page 5: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/5.jpg)
5
Console.Log TDD
![Page 6: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/6.jpg)
6
![Page 7: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/7.jpg)
7
![Page 8: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/8.jpg)
8
![Page 9: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/9.jpg)
9
![Page 10: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/10.jpg)
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
![Page 11: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/11.jpg)
11
What is TDD?Test Driven Development, duh!?
![Page 12: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/12.jpg)
12
Unit Testing !== TDDYou don’t say, Sherlock
![Page 13: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/13.jpg)
13
![Page 14: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/14.jpg)
14
![Page 15: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/15.jpg)
15
![Page 16: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/16.jpg)
16
![Page 17: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/17.jpg)
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
![Page 18: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/18.jpg)
18
![Page 19: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/19.jpg)
19
PREREQUISITESCan’t have a car without a driver. Oh, wait!, it’s 2016!
![Page 20: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/20.jpg)
20
![Page 21: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/21.jpg)
21
describe [thing]it should [do sth]
BDD style
![Page 22: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/22.jpg)
22
![Page 23: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/23.jpg)
23
![Page 24: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/24.jpg)
24
TAKE THE RED PILL
![Page 25: INTRODUCTION TO TDD · BDD style. 22. 23. TAKE THE RED PILL 24. 25. DON'T ALWAYS TEST MY CODE I DO PRODUCTION . 99 little bugs in the code. 99 little bugs in the code. Take one down,](https://reader034.vdocument.in/reader034/viewer/2022050115/5f4c18b336f5b16eea00f58c/html5/thumbnails/25.jpg)
25