[Grok-dev] RFC: Grokking tests
Philipp von Weitershausen
philipp at weitershausen.de
Thu Mar 29 14:38:25 EDT 2007
On 29 Mar 2007, at 18:13 , Lennart Regebro wrote:
> On 3/28/07, Philipp von Weitershausen <philipp at weitershausen.de>
> wrote:
>> Hi there,
>>
>> I was about to add ftests to megrok.five and I wanted to reuse
>> some of
>> the testing infrastructure that we had in Grok, only to find that it
>> wasn't much reusable.
>>
>> Somebody at the BBQ Sprint (I think it was Whit) suggested that tests
>> themselves could be grokked, so I implemented that in a branch
>> (philikon-grokking-tests). It's not 100% finished yet (it's
>> missing some
>> tests for the new functionality, no pun intended), but Grok's own
>> tests
>> are all found and pass.
>>
>> For further explanations of how the approach works and other
>> things that
>> I've done at the same time (ftesting.zcml, functional layer, etc.), I
>> simply defer to the checkin comments which y'all should be able to
>> read :).
>
> I think this is a fantastic idea. But from the comments I get the
> feeling that this is only for doctests (which I don't like because
> they are a huge schmertz in the posterior to debug). Then again, maybe
> they are only needed for doctests?
I constrained myself to finding the type of test that Grok currently
employs because that's what I wanted it for. If others or I happen to
need the grokking of other tests in the future, perhaps we can add
that... Also, I didn't want you having to inspect a huge code change.
More information about the Grok-dev
mailing list