Perl's not the only TAP source
David E. Wheeler
david at kineticode.com
Thu Jun 11 20:57:05 GMT 2009
On Jun 11, 2009, at 1:16 PM, Steve Purkis wrote:
> If we did this, each Source Detector could define it's own signature
> that it looks for and votes on. Signatures could be anything like
> emacs' & vim's file variables:
>
> -*- mode: modename; var: value; ... -*-
> /* vim: set textwidth=65 tabstop=8 sts=3 noexpandtab: */
>
> Or they could be comments in SQL:
>
> -- test.sql
> -- TAP Source: pgTAP
>
> Or they could be ascii pictures of donkeys[1], it really doesn't
> matter so long as they fit into the first N bytes (say 1024?).
>
> The only downside: an extra system call to open the file. Probably
> negligible performance-wise. If people like the idea, it's pretty
> simple to make available.
Cute, but frankly, I'm fine on having naming conventions. I think I'd
go for .pg for pgTAP tests, for example. Why don't we start with that
and come back to this proposal if we find that the current approach is
insufficient?
That's my vote, but I don't much care either way, especially since I
can have the config parameters tell me what the files names are.
Best,
David
More information about the tapx-dev
mailing list