-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtdd-with-python.html
203 lines (202 loc) · 5.96 KB
/
tdd-with-python.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.3.0/css/reveal.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.3.0/css/theme/moon.min.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>TDD & Python</h1>
Escrevendo código simples e com qualidade
</section>
<section data-background-color="#32A730">
<h1>Bianca Rosa</h1>
<h2>Dev@Stone Pagamentos</h2>
<div style="color:#093901">
<h4>Programo principalmente em...</h4>
<ul>
<li>Python</li>
<li>GoLang</li>
<li>JS</li>
</ul>
</div>
</section>
<section data-background-color="#32A730">
<h1>Bianca Rosa</h1>
<h2>Dev@Stone Pagamentos</h2>
<div style="color:#093901">
<h4>Gosto de...</h4>
<ul>
<li>DevOps</li>
<li>Data Science</li>
<li>Cerveja</li>
</ul>
</div>
</section>
<section>
<h1>Vamos falar de TDD?</h1>
</section>
<section>
<h2>1. O mais difícil é começar</h2>
</section>
<section>
<h2>2. Existe uma curva de aprendizado</h2>
</section>
<section>
<h2>3. Mas demora muito! :(</h2>
</section>
<section>
<h1>O mindset</h1>
</section>
<section>
<h2>Nenhuma linha de código pode existir sem antes existir um
teste pra ela</h2>
</section>
<section>
<h1>NENHUMA.</h1>
</section>
<section>
<h1>TDD te obriga a pensar.</h1>
</section>
<section>
<img src="images/tdd-process.png"/>
</section>
<section>
<h1>Como eu faço?</h1>
</section>
<section>
<h1>API Docs</h1>
</section>
<section>
<img src="images/docs-api.png"/>
</section>
<section>
<img src="images/docs-api-2.png"/>
</section>
<section>
<pre><code data-trim>
mkdir group-orders-api
cd group-orders-api
git init
git remote add origin ...
git pull origin master
mkdir tests
mkdir tests/functional
touch tests/functional/groups_test.py
virtualenv venv
source venv/bin/activate
pip install pytest
pip freeze > requirements.txt
git add -A
git commit -m "Add first tests"
</code></pre>
</section>
<section>
<img src="images/tdd/1.png"/>
</section>
<section>
<img src="images/tdd/2.png"/>
</section>
<section>
<img src="images/tdd/3.png"/>
</section>
<section>
<img src="images/tdd/4.png"/>
</section>
<section>
<img src="images/tdd/5.png"/>
</section>
<section>
<img src="images/tdd/6.png"/>
</section>
<section>
<img src="images/tdd/7.png"/>
</section>
<section>
<img src="images/tdd/8.png"/>
</section>
<section>
<img src="images/tdd/9.png"/>
</section>
<section>
<img src="images/tdd/10.png"/>
</section>
<section>
<img src="images/tdd/11.png"/>
</section>
<section>
<img src="images/tdd/13.png"/>
</section>
<section>
<img src="images/tdd/14.png"/>
</section>
<section>
<img src="images/tdd/15.png"/>
</section>
<section>
<img src="images/tdd/16.png"/>
</section>
<section>
<img src="images/tdd/17.png"/>
</section>
<section>
<img src="images/dancing.gif"/>
</section>
<section>
<h2>Realmente aumenta o tempo de desenvolvimento?</h2>
</section>
<section>
<h2>É a única forma de conseguir ter um código bom e bem testado?</h2>
</section>
<section>
<h2>Coverage como consequência</h2>
</section>
<section>
<h2>O valor dos testes unitários</h2>
</section>
<section>
<h2>O valor dos testes de integração</h2>
</section>
<section>
<h2>O valor dos testes funcionais</h2>
</section>
<section>
<h2>O valor dos testes de aceitação</h2>
</section>
<section>
<h2>Precisamos ir dormir tranquilos</h2>
</section>
<section>
<h2>Mocks são legais, mas...</h2>
</section>
<section>
<h1>Obey the testing goat!</h1>
<a href="http://www.obeythetestinggoat.com/">http://www.obeythetestinggoat.com/</a>
</section>
<section>
<h1>Polêmica</h1>
<a href="https://www.thoughtworks.com/pt/insights/blog/mockists-are-dead-long-live-classicists">https://www.thoughtworks.com/pt/insights/blog/mockists-are-dead-long-live-classicists</a>
</section>
<section>
<h1>Links</h1>
<a href="http://tdd.caelum.com.br/">http://tdd.caelum.com.br/</a>
<a href="https://martinfowler.com/bliki/TestDrivenDevelopment.html">https://martinfowler.com/bliki/TestDrivenDevelopment.html</a>
<a href="https://tableless.com.br/tdd-por-que-usar/">https://tableless.com.br/tdd-por-que-usar/</a>
</section>
<section>
<img src="images/yay.gif"/>
<p>twitter: <a href="http://twitter.com/__biancarosa">@__biancarosa</a></p>
<p>código: <a href="https://github.com/biancarosa/group-orders-api">github.com/biancarosa/group-orders-api</a></p>
<p>tks :)</p>
</section>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.3.0/js/reveal.min.js"></script>
<script>
Reveal.initialize();
</script>
</body>
</html>