-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
355 lines (303 loc) · 10.1 KB
/
index.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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mai mult decat unit test - Adi Roiban</title>
<meta name="description" content="A presentation about automated tests.">
<meta name="author" content="Adi Roiban">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<script>
// If the query includes 'print-pdf' we'll use the PDF print sheet
document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Used to fade în a background when a specific slide state is reached -->
<div class="state-background"></div>
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>mai mult decât</h1>
<h1>unit teste</h1>
<p>Adi Roiban - adi@roiban.ro</p>
<p></p>
<p>GeekMeet#11</p>
<p>29.09.2013 Cluj-Napoca</p>
<aside class="notes">
Note pentru server
</aside>
</section>
<section>
<h2>Despre Mine</h2>
<p>Jack of all trades, master of none</p>
<p>neam de programator</p>
<p>pasionat de software liber</p>
<p>întreprinzător liber-profesionist</p>
<p><br></p>
<p class="fragment">rareori motociclist sau skipper</p>
</section>
<section>
<h2>DESPRE VOI</h2>
<div>
<ul>
<li>QA?</li>
<li>Suport?</li>
<li>Programatori?</li>
</ul>
</div>
</section>
<section>
<h2>Cuprins</h2>
<p>Verificarea calităţii</p>
<p>Unelte folosite - open/free software</p>
<p>Metode de testare</p>
</section>
<section>
<h2>Testare automată - De ce?</h2>
<div>De mâna e greu şi imprevizibil</div>
<div>Scapam de frica regresiilor</div>
<div>functionalităţi noi</div>
<div>refactoring de voie</div>
</section>
<section>
<h2>Testare automată - Cum?</h2>
<div>bazate pe specificatii/cerinte</div>
<div>venite de la client sau realizate de noi</div>
<div>doar testarea automată</div>
<div>poate fi repetată oricand</div>
<div>fara interventie umană (inaite, în timpul, după)</div>
</section>
<section>
<h2>Unit teste</h2>
<div>
<ul>
<li class="fragment">Ce sunt ele?</li>
<li class="fragment">Scrieti unit teste?</li>
<li class="fragment">Inainte de implementare?</li>
</ul>
</div>
</section>
<section>
<section>
<h2>Analiza statică a codului</h2>
<h3>aka lintere</h3>
<p>Nu testează functionalitatea</p>
<p>Asigură un cod unitar</p>
<p>Teste pentru style guide - coding conventions</p>
<p><br></p>
<ul class="fragment">
Exemple
<li>JS: jshint</li>
<li>CSS: css-utils</li>
<li>Python: PEP08, PyFlakes
</ul>
</section>
<section data-state="soothe">
<h1>build system integration demo</h1>
<p> css / js / rst </p>
</section>
<section data-state="soothe">
<h1>IDE/Text editor integration demo</h1>
<p> python </p>
</section>
</section>
<section>
<section>
<h2>Test Runners</h2>
<p>Testing layers / Package setUp/tearDown</p>
<p>Filtre</p>
<p>Tag-uri / Skip</p>
<p>Rapoarte</p>
<p>Debugging</p>
</section>
<section data-state="soothe">
<h1>Demo Python-Nose</h1>
<p>filtre, raporate, debuging, elevated</p>
</section>
</section>
<section>
<section>
<h2>Continous Integration</h2>
<p>cel puţin o dată pe zi</p>
<p>multi-platformă, multi-configuraţii</p>
<p>acţiuni pe baza rezultatelor</p>
</section>
<section data-state="alert">
<h1>Buildbot</h1>
<p>buildbot try</p>
<p>... mai multe pentru altă dată</p>
</section>
</section>
<section>
<section>
<h2>Teste de integrare / Integration tests</h2>
<div>
<ul>
<li class="fragment">Ce sunt ele?</li>
<li class="fragment">Scrieţi teste de integrare?</li>
<li class="fragment">Pentru toate componentele?</li>
</ul>
</div>
</section>
<section>
<h2>Teste de integrare - Ce sunt ele?</h2>
<p>la nivel de cod</p>
<p>verifică interacţiunea dintre componente</p>
<p>nu există scuze pentru absenţa lor</p>
</section>
<section>
<h2>Ajutoare pentru teste de integrare</h2>
</section>
<section>
<h2>generatoare de obiecte/componente</h2>
<p>reduce numarul de importuri în teste</p>
<p>reduce liniile pentru cod secundar</p>
</section>
<section>
<h2>generator date</h2>
<p>evită interactiunea cu sistemul de input/output, fisiere, retea</p>
</section>
<section>
<h2>date din cache</h2>
<p>mareste viteza de executie</p>
</section>
<section>
<h2>implementări minimale</h2>
<p>verifică "raza" de actiune a compenentelor</p>
<p>pot fi implementate prin mock</p>
</section>
</section>
<section>
<section>
<h2>Teste de sistem / System tests</h2>
<div>
<ul>
<li class="fragment">Ce sunt ele?</li>
<li class="fragment">Scrieţi teste de sistem?</li>
<li class="fragment">Pentru toate functionalitătile?</li>
</ul>
</div>
</section>
<section>
<h2>Teste de sistem - Ce sunt ele?</h2>
<p>la nivel de interfată cu lumea exterioară</p>
<p>GUI / CLI / API / Protocol</p>
<p>verifică functionalitatea completă a sistemului</p>
<p>black box</p>
<ul>
Exemple
<li>Selenium</li>
<li>swbot</li>
</ul>
</section>
<section>
<h2>Teste de sistem - GUI</h2>
<p>emulare/stimulare programată a dispozitivelor de input</p>
<p>mouse / tastatură / evenimente sistem</p>
<p>cu ajutorul uneltelor de accesibilitate</p>
<p>pot fi încete sau restranse de sistem</p>
<p>Windows screensaver - window protection</p>
<p>Unix X11 headless framebuffer</p>
</section>
<section data-state="alert">
<h1>PhantomJS</h1>
<p>... data viitoare :(</p>
</section>
<section>
<h2>Teste de sistem - CLI/API/Protocol</h2>
<p>pachete de retea / cereri de retea</p>
<p>API/Protocol user bot</p>
</section>
</section>
<section>
<section>
<h2>Teste de acceptantă</h2>
<div>
<ul>
<li class="fragment">Ce sunt ele?</li>
<li class="fragment">Scrieţi teste de acceptantă?</li>
</ul>
</div>
</section>
<section>
<h2>Teste de acceptantă - Ce sunt ele?</h2>
<p>bazate direct pe specificaţii/cerinte</p>
<p>cod comun între specificaţie şi testare</p>
<p>greu de găsit limbaj comun între specificator şi implementator</p>
<p>smoke tests</p>
<p><br></p>
<ul class="fragment">
Exemple
<li>cucumber</li>
<li>selenium</li>
<li>sikuli</li>
</ul>
</section>
<section data-state="blackout">
<h1>Reuşite ?!</h1>
</section>
<section data-state="soothe">
<h1>Demo Python DocTest</h1>
</section>
</section>
<section>
<h1>Întrebări !?</h1>
<p>Nelămuriri</p>
<p>Comentarii</p>
</section>
<section>
<h1>Însfârşit, sfârşitul</h1>
<h3>Sugestii şi reclamaţii</h3>
<p><strong>adi@roiban.ro</strong></p>
<p><br></p>
<p>
<small>
Cod pe <a href="https://github.com/adiroiban/more-than-unit-testing">github.com/adiroiban/more-than-unit-testing</a>
</small>
</p>
<p><small>Realizat folosind: <a href="http://lab.hakim.se/reveal-js/">Reveal.JS</a></small></p>
</section>
</div>
<!-- The navigational controls UI -->
<aside class="controls">
<a class="left" href="#">◄</a>
<a class="right" href="#">►</a>
<a class="up" href="#">▲</a>
<a class="down" href="#">▼</a>
</aside>
<!-- Presentation progress bar -->
<div class="progress"><span></span></div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
rollingLinks: false,
theme: Reveal.getQueryHash().theme || 'custom', // available themes are în /css/theme
transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/linear(2d)
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/highlight.js', async: true, callback: function() { window.hljs.initHighlightingOnLoad(); } },
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'lib/js/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'lib/js/data-markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
]
});
</script>
</body>
</html>