-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
210 lines (185 loc) · 5.48 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Introduction to VueJS</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/blood.css">
<!-- Theme used for syntax highlighting of code -->
<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>
<link rel="stylesheet" href="css/custom.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>Start your end to end testing</h1>
<h6>with cypress.io</h6>
<p>
<small>Victor Borshchov, <a href="https://triare.net/" target="_blank">Triare</a></small>
</p>
</section>
<section>
<h2>Topics</h2>
<section>
<ul>
<li>Testing intro</li>
<li>What is Cypress?</li>
<li>Demo</li>
</ul>
</section>
</section>
<section>
<h2>Testing pyramid</h2>
</section>
<section>
<img src="images/testing pyramid.webp"/>
</section>
<section>
<section>
<h3>Which type of testing is most important?</h3>
<h2>unit, e2e, both?</h2>
</section>
</section>
<section>
<h3>Unit and integration tests are great place to start but E2E tests combines everything and actually find bugs.</h3>
</section>
<section>
<div class="container">
<div class="col">
<h3>Unit testing</h3>
<ul class="fragment highlight-green" data-fragment-index="1">
<li>Fast</li>
<li>Reliable</li>
<li>Isolated faillures</li>
</ul>
<br>
<br>
<br>
<ul class="fragment highlight-blue" data-fragment-index="2">
<li>Prefered by developers</li>
</ul>
<br>
<br>
<br>
<ul class="fragment highlight-red" data-fragment-index="3">
<li>Time consuming</li>
</ul>
</div>
<div class="col">
<h3>E2E testing</h3>
<ul class="fragment highlight-green" data-fragment-index="4">
<li>Simulates a real user</li>
<li>Catches real bugs</li>
<li>Often easy to migrate from manual testing</li>
</ul>
<br>
<br>
<ul class="fragment highlight-blue" data-fragment-index="5">
<li>Prefered by managers</li>
</ul>
<br>
<br>
<br>
<ul class="fragment highlight-red" data-fragment-index="6">
<li>Needs a deployed service to test</li>
<li>Many code-paths to test</li>
</ul>
</div>
</div>
</section>
<section>
<h2>Tests are about giving confidence to developer</h2>
</section>
<section>
<h3>Tests can hold your back</h3>
<section>
<ul>
<li>Not fast enough feedback</li>
<li>Feedback is unclear</li>
<li>Updating tests is hard</li>
<li>Too complex tests</li>
<li>Too many tests, testing the same</li>
</ul>
</section>
</section>
<section>
<p>Use the right strategy</p>
<p>Try to minimise the amount of double testing</p>
<p>Use the right tools</p>
</section>
<section>
<img src="images/cypress_logo.jpeg" alt="">
<h2>Cypress.io</h2>
</section>
<section>
<h3>What is cypress?</h3>
<section>
<blockquote>
<p>Cypress is open source testing tool written entirely in JavaScript</p>
<p>Cypress spawns & drives the browser manually exatly like you do in development</p>
</blockquote>
<p><i><b>Brian Mann</b></i> - founder Cypress.io</p>
</section>
</section>
<section>
<h3>Features</h3>
<section>
<ul>
<li>Time Travel.</li>
<li>Debuggability.</li>
<li>Automatic Waiting.</li>
<li>Spies, Stubs, and Clocks.</li>
<li>Network Traffic Control.</li>
<li>Consistent Results.</li>
<li>Screenshots and Videos.</li>
</ul>
</section>
</section>
<section>
<p>You can write your first passing test in 60 seconds.</p>
<video autoplay="" loop="" muted="" playsinline="" controls="" class=""
poster="https://docs.cypress.io/img/snippets/installing-cli.49be74b0.png" style="width:100%">
<source type="video/mp4" src="https://docs.cypress.io/img/snippets/installing-cli.486453a2.mp4">
</video>
</section>
<section>
<h2>Demo time</h2>
</section>
<section>
<h1>Questions?</h1>
</section>
<section>
<h1>Thank you</h1>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
width: 1024,
history: true,
transition: 'fade',
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true }
]
});
</script>
</body>
</html>