A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20060604/f65fe514/attachment.htm below:

<br><div><span class="gmail_quote">On 6/4/06, <b class="gmail_sendername">Michael Hudson</b> &lt;<a href="mailto:mwh@python.net">mwh@python.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&quot;Thomas Wouters&quot; &lt;<a href="mailto:thomas@python.org">thomas@python.org</a>&gt; writes:<br><br>&gt; On 6/4/06, Michael Hudson &lt;<a href="mailto:mwh@python.net">mwh@python.net</a>&gt; wrote:<br>&gt; [ For non-checkins readers: Martin Blais checked in un-unittestification
<br>&gt; of test_struct, which spawned questions form Neal and me about whether<br>&gt; that's really the right thing to do. I also foolishly&lt; 0.5 wink&gt; siggested<br>&gt; that, if we switch away from unittest, we switch to 
py.test instead of the<br>&gt; old unstructured tests ]<br>&gt;<br>&gt;&nbsp;&nbsp; &quot;Tim Peters&quot; &lt;<a href="mailto:tim.peters@gmail.com">tim.peters@gmail.com</a>&gt; writes:<br>&gt;&nbsp;&nbsp; &gt; unittest, and especially doctest, encourage breaking tests into small
<br>&gt;&nbsp;&nbsp; &gt; units.&nbsp;&nbsp;An example of neither is test_descr.py, which can be a real<br>&gt;&nbsp;&nbsp; &gt; bitch to untangle when it fails.<br>&gt;<br>&gt;&nbsp;&nbsp; Also, there is an advantage to have more structure to the tests; if<br>
&gt;&nbsp;&nbsp; all of python's tests used unittest, my regrtest -R gimmickery would<br>&gt;&nbsp;&nbsp; be able to identify tests, rather than test files, that leaked and I'm<br>&gt;&nbsp;&nbsp; pretty sure that this would have saved me a few hours in the last
<br>&gt;&nbsp;&nbsp; couple of years.&nbsp;&nbsp;Also, you can more easily identify particular tests<br>&gt;&nbsp;&nbsp; that fail intermittently.&nbsp;&nbsp;Etc.<br>&gt;<br>&gt; I'm not arguing against structure, just against all the unittest cumber.<br>&gt; For example, 
py.test doesn't do the output-comparing, and it does require<br>&gt; you to put tests in separate functions. However, it doesn't require (but<br>&gt; does allow) test classes. Test-generators are generators that *return*<br>
&gt; tests, which are then run, so that you can have separate tests for<br>&gt; runtime-calculated tasks, and yet still have them be separate tests for<br>&gt; error reporting and such. py.test also allows tests to print during
<br>&gt; execution, and that output is kept around as debug output: it's only shown<br>&gt; when the test fails. It also comes with a convenient command-line tool<br>&gt; that can run directories, modules, individual tests, etc -- which, for
<br>&gt; unittest, I *always* have to copy-paste select bits out of regrtest and<br>&gt; test_support for. My own project testing has gotten much more exhaustive<br>&gt; since I started using py.test, it's just much, much more convenient.
<br><br>I don't want to pull the 'do you know who I am?' routine, and I know<br>you're addressing python-dev rather than just me, but I'm currently<br>sitting in the same room as the guy who wrote py.test :-)<br><br>I'm also not sure what point you're trying to make: I *know* 
py.test<br>is better than unittest, that's not what I was saying.&nbsp;&nbsp;But unittest<br>is better than old-skool output comparison tests.<br><br>I guess you're not really replying to my mail, in fact... :)</blockquote><div><br>
I'm sorry, I guess I was misunderstanding your mail. I thought Tim's reaction was &quot;we want unittest because we want structure&quot;, and your reaction was &quot;yes, we need more structure&quot;, both of which I took as &quot;I don't really know anything about 
py.test&quot; :) Since no one argued *against* structure, I'm not sure where the structure argument comes from. As for not knowing about your &quot;involvement&quot; with py.test, well, how could I? py.test doesn't list an 'author' anywhere I could find, the webpage just says &quot;last edited by Holger&quot;, and the debian package came with no CREDITS file other than the 'copyright' file, which doesn't list you ;-P
<br></div></div><br>Credit-+=-mwh-where-credit-is-due--now-please-merge-with-unittest-already&lt;wink&gt;'ly y'rs,<br>-- <br>Thomas Wouters &lt;<a href="mailto:thomas@python.org">thomas@python.org</a>&gt;<br><br>Hi! I'm a .signature virus! copy me into your .signature file to help me spread!

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4