Canonical test_XXX.py - nope (was:Re: [Python-Dev] Re: Call for reviewer!)
Trent Mick
trentm@ActiveState.com
Sun, 20 Aug 2000 10:15:52 -0700
On Sun, Aug 20, 2000 at 12:53:05AM -0400, David Goodger wrote:
> Glad to contribute. You'll find a regression test module for the current
> getopt.py as revised patch #101110. I based it on some existing Lib/test/
> modules, but haven't found the canonical example or instruction set. Is
> there one?
I don't really think there is. Kind of folk lore. There are some good
examples to follow in the existing test suite. Skip Montanaro wrote a README
for writing tests and using the test suite (.../dist/src/Lib/test/README).
Really, the testing framework is extremely simple. Which is one of its
benefits. There is not a whole lot of depth that one has not grokked just by
writing one test_XXX.py.
Trent
--
Trent Mick
TrentM@ActiveState.com