Python is used a lot for web development nowadays. How about mentioning that there are libraries for executing tests by controlling a browser? I&#39;m thinking about Selenium and thelike. They are very useful for high-level testing.<div>

<br></div><div>Regards,</div><div>Jens<br><br><div class="gmail_quote">On Tue, Oct 2, 2012 at 11:34 AM, andrea crotti <span dir="ltr">&lt;<a href="mailto:andrea.crotti.0@gmail.com" target="_blank">andrea.crotti.0@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m preparing a talk about unit testing in Python, and I&#39;m thinking<br>
about what to say and in which order..<br>
<br>
So far I came up with the following structure of key points, what do<br>
you think?<br>
Am I missing something important or anything else that could be useful?<br>
<br>
* Python is very dynamic<br>
<br>
** No help from the compiler<br>
<br>
** Very bad errors coming only at runtime<br>
<br>
   examples of functions that fail miserably only at runtime<br>
<br>
** We need to test our code even harder<br>
<br>
* Functions<br>
<br>
** Pure functions<br>
<br>
** Side effects, and why they are bad<br>
<br>
** Test pure functions (with a simple module)<br>
<br>
* Testing<br>
<br>
** Unit testing, integration testing, functional testing<br>
<br>
** TDD and test first development<br>
<br>
** Examples and demo about TDD<br>
<br>
* unittest libraries<br>
<br>
** Setup / Teardown<br>
<br>
** Test discovery<br>
<br>
** Coverage<br>
<br>
** Nose + coverage<br>
<br>
* Mock library<br>
<br>
** Python dynamic binding and by-hand examples<br>
<br>
** Testing side effect functions<br>
<br>
* Conclusions<br>
<br>
** Avoid side effect whenever possible<br>
<br>
** Build your programs bottom-up, composing small functions<br>
<br>
** Before writing the code, think how you could test it<br>
<br>
_______________________________________________<br>
testing-in-python mailing list<br>
<a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#999999">Want to know how full my inbox is? Or how to get in touch with me faster? Or tell me your e-mail is not that important? Then check this out: <span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://courteous.ly/4WtfZY" target="_blank">http://courteous.ly/4WtfZY</a></span></font><br>


</div>