Perl's not the only TAP source

David E. Wheeler david at kineticode.com
Thu Jun 18 21:49:29 GMT 2009


On Jun 11, 2009, at 3:36 PM, David E. Wheeler wrote:

> Hell, as I think about this, maybe there should be no command()  
> function, but just a stream function (or iterator, if you like). For  
> a command, it'd be:
>
>    sub stream {
>        my ($params, $factory) = @_;
>        $factory->make_iterator(
>            command =>[ 'php', $params->{file}{name} @{ $params- 
> >{config} || [] }]
>        );
>    }
>
> I like this because the amount of work is the same as before and the  
> required interface is the same for both command and non-command  
> sources. Hell, even better would be to have different constructors  
> on the $factory object, such as `make_with_command()` and  
> `make_with_rawsource()` or something like that.
>
> Thoughts?

Just a quick ping about this for Steve. After Schwern figured out how  
to [run Test.Simple tests using Selnium](http://use.perl.org/~schwern/journal/39088 
), I gave it a try and now I'm eager to implement a source for  
JavaScript tests. It would probably need to be distributed separately  
from the rest of TAP::Harness, since it will require WWW::Selenium,  
but I'm really excited to be able to basically have the reality of  
tests in any number of different languages run at the same time. I  
want to work on it now! :-)

So, where are we at?

Best,

David


More information about the tapx-dev mailing list