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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'method.': 0.15; 'email name:patrick': 0.16; 'received:dip.t-dialin.net': 0.16; 'received:t-dialin.net': 0.16; 'testcases': 0.16; 'wrote:': 0.18; 'from:addr:web.de': 0.23; 'tests.': 0.23; 'subject:please': 0.24; 'code': 0.25; 'module': 0.26; 'testing': 0.26; 'forgot': 0.29; 'idea': 0.32; 'header:X-Complaints-To:1': 0.33; 'instead': 0.33; 'to:addr:python-list': 0.34; 'it.': 0.34; 'subject:project': 0.34; 'test': 0.35; 'portion': 0.38; 'received:org': 0.38; 'allows': 0.38; 'put': 0.38; 'went': 0.38; 'tool': 0.39; 'to:addr:python.org': 0.40; 'dedicated': 0.61; 'your': 0.61; 'risk': 0.71; 'subject:your': 0.80; 'ugly,': 0.84; 'alone.': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Peter Otten <__peter__@web.de>
Subject Re: your feedback to my first project please
Date Sat, 07 Jan 2012 14:12:28 +0100
Organization None
References <499.26273427463$1325938350@news.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Gmane-NNTP-Posting-Host p50849e43.dip.t-dialin.net
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4511.1325941958.27778.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1325941958 news.xs4all.nl 6858 [2001:888:2000:d::a6]:56042
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:18644

Show key headers only | 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