[TIP] Test coverage and parsing.
Grig Gheorghiu
grig.gheorghiu at gmail.com
Tue Jul 28 09:56:15 PDT 2009
On Tue, Jul 28, 2009 at 9:00 AM, Olemis Lang<olemis at gmail.com> wrote:
>
> How could I do that ? Do you have any suggestions or know any tool for
> doing this ?
>
Olemis -- it might be instructive to look at the unit tests for a
pretty well established tool, pyparsing:
http://pyparsing.svn.sourceforge.net/viewvc/pyparsing/src/unitTests.py?revision=181&view=markup
For your scenario, I think you need a combination of well thought out
test data (which like you said should cover both corner cases and
cases which should trigger errors/exceptions) and traditional test
coverage.
Grig
More information about the testing-in-python
mailing list