forked from hakimel/reveal.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
417 lines (355 loc) · 13.2 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
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Automation - The Must Have Trend of 2015</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Jeff Koenig">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/sky.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>Automation</h1>
<h3>The must have trend of 2015</h3>
<p>
</br>
<small>
These Slides: <a href="http://TheJefe.github.io/automation/">TheJefe.github.io/automation/</a>
</br>
Created by <a href="http://github.com/TheJefe">Jeff Koenig</a>
</br>
Twitter: <a href="http://twitter.com/jeffkoenig">@JeffKoenig</a>
</br>
Github: <a href="http://github.com/TheJefe">TheJefe</a>
</small>
</p>
</section>
<section>
<h2 style="text-transform: none">What.is.Automation?</h2>
<aside class="notes">
Efficiency and Effectiveness across the life cycle of software
</aside>
</section>
<section>
<section>
<h3>What can automation do?</h3>
</section>
<section>
<h2>Build</h2>
<img src="media/compiling.png"/>
</section>
<section>
<h2>Test</h2>
<img src="media/manualTesting.gif"/>
</section>
<section>
<h1>Deploy</h1>
<img src="media/shipIt.gif"/>
</section>
<section>
<h2>Fun</h2>
<img src="media/buildFailure.gif"/>
</section>
</section>
<section>
<section>
<h3>Why you need automation?</h3>
<p class="fragment">Because we want to ship code fast.</p>
<aside class="notes">
Shipping code fast takes confidence in your changes
</br>
Can't wait weeks for manual regression tests to find out you did it all wrong
</aside>
</section>
<section>
<h3>Why you need automation?</h3>
<p>Find major issues in your codes in minutes, rather then weeks</p>
</section>
<section>
<img src="media/manualTests.jpg">
<h2 class="fragment">THROW THEM AWAY</h2>
<aside class="notes">
English is the worst programing language and humans are the worst compilers
</aside>
</section>
<section>
<h3>Why you need automation?</h3>
<p>Because weeks of manual regressions tests is mind-numbing.</p>
<p class="fragment">maintaining manual test scripts is monotonous</p>
<img class="fragment" src="media/noTimeForThat.gif">
</section>
<section>
<h3>Why you need automation?</h3>
<p>It frees up your team to do more interesting things.</p>
</section>
<section>
<h3>Effective and Efficent</h3>
<p class="fragment">configure it be part of your workflow</p>
<p class="fragment">automatically deploy your staging environment</p>
<aside class="notes">
which humans are not
</aside>
</section>
</section>
<section>
<section>
<h2>How to get started</h2>
<aside class="notes">
large up front cost, but probably not as much as a couple of your regression runs
</aside>
</section>
<section>
<h3>Pick a Test Framework</h3>
<ul>
<li>MiniTest</li>
<li>Rspec</li>
<li>Jasmine</li>
<li>Cucumber</li>
<li>JUnit</li>
<li><s>Selenium</s></li>
</ul>
<aside class="notes">
Do the research and pick the framework right for you
</br>
Selenium is slow, there are faster headless drivers
</aside>
</section>
<section>
<h3>Write Tests!</h3>
<ul>
<li><p class="fragment">Start with your core stuff</p></li>
<li><p class="fragment">When you find a bug, write a test to reproduce it</p></li>
<li><p class="fragment">New features means new tests</p></li>
</ul>
</section>
<section>
<h3>Find your projects weak points</h3>
<p>Write some automated tests to expose those issues</p>
</section>
</section>
<section>
<section>
<img src='media/y_u_no_run_test.jpg' />
</section>
<section>
<h3>
The Solution:
</br>
Continuous Integration
</h3>
</section>
<section>
<h1 style="text-transform: none">What.is.CI?</h1>
<p class="fragment">Automated tasks that fit to your workflow</p>
<aside class="notes">
automating your build/test processs to occur automatically
</aside>
</section>
<section>
<h3>CI Options</h3>
<ul>
<li>
<a href="http://jenkins-ci.org/">Jenkins CI</a> /
<a href="https://www.cloudbees.com/">Cloudbees</a>
</li>
<li><a href="https://travis-ci.org">Travis CI</a></li>
<li><a href="https://drone.io/">Drone.io</a></li>
<li><a href="http://buildbot.net/">Buildbot</a></li>
<li><a href="http://stridercd.com/">StriderCD</a></li>
<li><a href="https://www.jetbrains.com/teamcity/">TeamCity</a></li>
</ul>
<aside class="notes">
Do the research and pick the framework right for you
</aside>
</section>
<section>
<p>
Trigger Build/Tests for
</br>
Feature
</br>
and Release Candidate
</br>
branches
</p>
</section>
<section>
<h3>Create a Build Pipeline</h3>
<aside class="notes">
Chain together tests to deployments
</aside>
</section>
<section>
<h3>Continuous Deployment</h3>
<p class="fragment">When code passes all tests, a production deployment is triggered</p>
<aside class="notes">
Nirvana of the automation
</aside>
</section>
<section>
<p>Welcome to Automation Nirvana</p>
<img src="media/buddhanirvana.jpg"/>
</section>
</section>
<section>
<section>
<h3>Common Problems</h3>
</section>
<section>
<h3>Common Problems</h3>
<h4>ND Failures</h4>
<aside class="notes">
Smart waiting
</aside>
</section>
<section>
<h3>Common Problems</h3>
<h4>Over Automated</h4>
</section>
<section>
<h3>Common Problems</h3>
<h4>Accessibility</h4>
<aside class="notes">
Tests take too long
</br>
Its a pain to run them locally
</br>
I forget to run them
</br>
It works on my machine
</aside>
</section>
</section>
<section>
<section>
<h1>Culture</h1>
<aside class="notes">
Tests MUST be part of your company culture
</aside>
</section>
<section>
<h3>Agree on Ground Rules</h3>
<ol>
<li><p class="fragment">Code with failing tests <b>SHALL NOT</b> be MERGED</p></li>
<li><p class="fragment">Code with failing tests <b>SHALL NOT</b> be DEPLOYED</p></li>
<li><p class="fragment">New features <b>SHALL NOT</b> be merged without tests</p></li>
</ol>
</section>
<section>
<h3>YOU MUST DO Test Driven Development</h3>
<small>(TDD)</small>
</section>
<section>
<h1>WRONG</h1>
<pre class="fragment"><code>git rebase -i</code></pre>
<img class="fragment" src="media/thrownOfLies.gif"/>
<aside class="notes">
But features should not be merged in until tests have been written for it
</aside>
</section>
<section>
<h3>Who is responsible for writing tests?</h3>
<h2 class="fragment">THE TEAM</h2>
<aside class="notes">
Doesn't matter who writes the tests,
because they should go through code review just like
any other code
</aside>
</section>
</section>
<section>
<section>
<h1>ChatOps</h1>
</section>
<section>
<h2 style="text-transform: none">What.is.ChatOps?</h2>
<p class="fragment">Chat bot that hears and responds to specific things in chat</p>
<img class="fragment" src="media/mathbotAww.png"/>
</section>
<section>
<h3>Hubot</h3>
<img src="media/hubot.svg"/>
</section>
<section>
<h1>ChatOps</h1>
<img src="media/chatOpTestFailure.png"/>
<small>used with permission from Bill</small>
</section>
<section>
<h3>Advantage of ChatOps</h3>
<img src="media/chatOptsDeployStatus.png"/>
<small>used with permission from Andre</small>
</section>
<section>
<h2>More on ChatOps</h2>
<a href="http://slides.com/carolnichols/chatops#/">slides.com/carolnichols/chatops</a>
<p>Courtesy of Carol Nichols</p>
</section>
</section>
<section>
<h1>THE END</h1>
</section>
<section>
<h2>LINKS!!!</h2>
<ul>
<h4>Me</h4>
<li>Twitter: <a href="http://twitter.com/jeffkoenig">@JeffKoenig</a></li>
<li>Github: <a href="http://github.com/TheJefe">TheJefe</a></li>
<li>These Slides: <a href="http://TheJefe.github.io/automation/">TheJefe.github.io/automation/</a></li>
</br>
<h4>Continous Integration</h4>
<li><a href="http://jenkins-ci.org/">Jenkins CI</a></li>
<li><a href="https://www.cloudbees.com/">Cloudbees for Jenkins hosting</a></li>
<li><a href="https://travis-ci.org">Travis CI</a></li>
<li><a href="https://www.jetbrains.com/teamcity/">TeamCity</a></li>
</br>
<h4>Other</h4>
<li>Chat bot:<a href="https://hubot.github.com/">Hubot</a></li>
</ul>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'convex', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>