Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18644 > unrolled thread

Re: your feedback to my first project please

Started byPeter Otten <__peter__@web.de>
First post2012-01-07 14:12 +0100
Last post2012-01-07 14:12 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: your feedback to my first project please Peter Otten <__peter__@web.de> - 2012-01-07 14:12 +0100

#18644 — Re: your feedback to my first project please

FromPeter Otten <__peter__@web.de>
Date2012-01-07 14:12 +0100
SubjectRe: your feedback to my first project please
Message-ID<mailman.4511.1325941958.27778.python-list@python.org>
patrick@bierans.de wrote:

> I know the TestCases are ugly, I still have no feeling for it.

I forgot to mention: instead of testing each and every thing in one big 
method put each test into a short dedicated TestCase.test_... method. That 
reduces the risk of undetected side effects and often allows you to learn 
what went wrong from the -- thoroughly chosen ;) -- name of the test method 
alone.

coverage.py is a good tool to give you an idea of what portion of your 
module code is covered by your tests.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web