You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
4.4 KiB
118 lines
4.4 KiB
11 months ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||
|
|
||
|
<!-- Enable responsiveness on mobile devices-->
|
||
|
<!-- viewport-fit=cover is to support iPhone X rounded corners and notch in landscape-->
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, viewport-fit=cover">
|
||
|
|
||
|
<title>Julio Biason .Me 4.3</title>
|
||
|
|
||
|
<!-- CSS -->
|
||
|
<link rel="stylesheet" href="https://blog.juliobiason.me/print.css" media="print">
|
||
|
<link rel="stylesheet" href="https://blog.juliobiason.me/poole.css">
|
||
|
<link rel="stylesheet" href="https://blog.juliobiason.me/hyde.css">
|
||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body class=" ">
|
||
|
|
||
|
<div class="sidebar">
|
||
|
<div class="container sidebar-sticky">
|
||
|
<div class="sidebar-about">
|
||
|
|
||
|
<a href="https://blog.juliobiason.me"><h1>Julio Biason .Me 4.3</h1></a>
|
||
|
|
||
|
<p class="lead">Old school dev living in a 2.0 dev world</p>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<ul class="sidebar-nav">
|
||
|
|
||
|
|
||
|
<li class="sidebar-nav-item"><a href="/">English</a></li>
|
||
|
|
||
|
<li class="sidebar-nav-item"><a href="/pt">Português</a></li>
|
||
|
|
||
|
<li class="sidebar-nav-item"><a href="/tags">Tags (EN)</a></li>
|
||
|
|
||
|
<li class="sidebar-nav-item"><a href="/pt/tags">Tags (PT)</a></li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="content container">
|
||
|
|
||
|
<div class="post">
|
||
|
<h1 class="post-title">Things I Learnt The Hard Way - Make Tests That You Know How To Run on the Command line</h1>
|
||
|
<span class="post-date">
|
||
|
2019-06-19
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/book/">#book</a>
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/things-i-learnt/">#things i learnt</a>
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/tests/">#tests</a>
|
||
|
|
||
|
<a href="https://blog.juliobiason.me/tags/command-line/">#command line</a>
|
||
|
|
||
|
</span>
|
||
|
<p>You know that "Play" with a little something on your IDE that runs only the
|
||
|
tests? Do you know what it does?</p>
|
||
|
<span id="continue-reading"></span>
|
||
|
<p>A long time ago I read the story about a professor that taught his students to
|
||
|
code. He preferred to teach using an IDE, 'cause then "students have to just
|
||
|
press a button to run the tests".</p>
|
||
|
<p>I get the idea, but I hate the execution.</p>
|
||
|
<p>When we get into professional field, we start using things like <a href="https://en.wikipedia.org/wiki/Continuous_integration">continuous
|
||
|
integration</a> which,
|
||
|
basically, is "run tests every time something changes" (it's a bit more than
|
||
|
that, but that's the basic idea).</p>
|
||
|
<p>Now, let me ask you this: Do you think the students of the professor above
|
||
|
would know how to add the command to run the tests in a continuous
|
||
|
integration system?</p>
|
||
|
<p>I know I'm being too picky (one could even call me "pricky" about this) but
|
||
|
the fact is that whatever we do today, at some point can be automated: our
|
||
|
tests can be run in an automated form, our deployment can be run in an
|
||
|
automated form, our validation can be run in an automated form and so on. If
|
||
|
you have no idea how those things "happen", you'll need the help of someone
|
||
|
else to actually build this kind of stuff, instead of having the knowledge
|
||
|
(well, half knowledge, the other half is the CI tool) with you all the time.</p>
|
||
|
<div>
|
||
|
|
||
|
<div style="float:left">
|
||
|
<< <a href="/books/things-i-learnt/tests-apis">Tests Make Better APIs</a>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div style="float:right">
|
||
|
<a href="/books/things-i-learnt/languages-tests">Good Languages Come With Tests</a> >>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|