[tap-l] pgTAP
David E. Wheeler
david at kineticode.com
Sat Jun 14 21:02:40 UTC 2008
On Jun 13, 2008, at 21:18, Aristotle Pagaltzis wrote:
> I think a separate utility is not necessary at all. `prove` has
> an `-e` switch which can be used to specify an interpreter to run
> the given scripts with, so all you should need to say is roughly
>
> prove -epsql t/*.s
Yeah, but I wanted it to have the ability to specify username,
password, database name, etc. So pg_prove looks a lot like other pg_*
tools.
> However, there is no existing way to get harness switches passed
> in based on the filename extension, and the factorisation of the
> `generic_test` method and its helpers is such that you can’t
> really use any of the bits in isolation.
Well, if I could start with some way to have one harness handle both
kinds of tests, I can probably break Module::Build to make it do my
bidding. Maybe someone would be willing to hack on this problem with
me at YAPC this week?
> It feels like this should be much easier… which I have to say is
> a feeling I often get when I try to extend M::B in any direction
> it doesn’t already explicitly accomodate.
Heh, yeah. I've sent in many patches to get it to do my bidding
(though not in a while).
> Of course the alternative is EU::MM where I have no desire to
> even try doing any interesting stuff at all.
No, nor do I. thanks for looking into this, Aristotle.
Best,
David
More information about the tap-l
mailing list