How to test anything with TAP::Parser?

Gabor Szabo szabgab at gmail.com
Fri Sep 28 18:44:01 BST 2007


runtests --exec ...    works, thanks!


BTW why should I prefer 'prove' ?

Gabor

On 9/28/07, Ovid <publiustemp-tapx at yahoo.com> wrote:
> --- Gabor Szabo <szabgab at gmail.com> wrote:
>
> > Hi ppl,
> >
> > I am missing something.
> >
> > I have written some code in some arbitrary language that (hopefully)
> > outputs TAP.
> >
> > What is the simples way to run it through TAP::Parser ?
> >
> > I tried runtests but it actually tries to run my test script as if it
> > was written in Perl.
>
> 1.  Use 'prove' instead of 'runtests'.
> 2.  If the file has a shebang, there's a good chance that Perl will
> redispatch to the correct executable and everything will "just work".
> For example, save this as 'test.rb' (adjust shebang as appropriate):
>
>   #!/usr/bin/ruby
>
>   puts "1..1"
>   puts "ok 1 this works"
>
> Perl will run and and it works just fine.  (perl test.rb)
>
> Failing that, see the examples/README to understand how the --exec
> switch works.
>
> Cheers,
> Ovid


More information about the tapx-dev mailing list