[tap-l] TAP tests

Andy Armstrong andy at hexten.net
Tue Mar 20 00:58:56 GMT 2007


On 20 Mar 2007, at 00:44, Michael G Schwern wrote:
> By which I mean acceptance tests to ensure your TAP consumer is  
> consuming
> properly.  We don't have anything official, it sure would be nice  
> if we did.
> So I'm throwing this out as a project for someone (where someone  
> does not
> equal "Andy Armstrong" because he's doing too much already) to do.
>
> A good place to start is the "sample-tests" directory in the  
> TAP::Parser
> distribution.  The expected results are in t/020-regression.t.  I'd  
> suggest
> the tests be encoded in YAMLish with the TAP and expected results  
> in each
> document.  For example...

Now /this/ is a nice reason to be glad we're using YAML instead of JSON.

> ---
[snip neat use of YAMLish]
> ...
>
> These should be posted on the Wiki and probably eventually shipped  
> with the
> TAP module.

I know I've been disqualified from this but I was just pondering  
today that it'd be nice to distribute parts of our test suite as YAML  
test specifications - which got me thinking about the whole idea of  
language independent tests: the test providing part of the  
specification in a way that's independent of the implementation  
language. How cool would that be?

I'm sure it's already being done but I hadn't thought about it too  
much before.

-- 
Andy Armstrong, hexten.net



More information about the tap-l mailing list