How to test anything with TAP::Parser?
szabgab at gmail.com
Fri Sep 28 18:44:01 BST 2007
runtests --exec ... works, thanks!
BTW why should I prefer 'prove' ?
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):
> 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.
More information about the tapx-dev