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


Groups > comp.lang.python > #18644

Re: your feedback to my first project please

From Peter Otten <__peter__@web.de>
Subject Re: your feedback to my first project please
Date 2012-01-07 14:12 +0100
Organization None
References <499.26273427463$1325938350@news.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.4511.1325941958.27778.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web