Skip Menu |
 

This queue is for tickets about the TAP CPAN distribution.

Report information
The Basics
Id: 94352
Status: open
Priority: 0/
Queue: TAP

People
Owner: Nobody in particular
Requestors: erik.bernoth [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: Andy Lester <andy [...] petdance.com>
Subject: Fwd: TAP Specification: How to specify a PLAN line for one test?
Date: Mon, 31 Mar 2014 23:12:52 +0200
To: bug-tap [...] rt.cpan.org
From: Erik Bernoth <erik.bernoth [...] gmail.com>
Download (untitled) / with headers
text/plain 1.6k
Dear TAP Maintainers, thanks to Andy Lester I was informed that Wikipedia's article on TAP still links to an old version of the specification. Please change that if possible (see forwarded part of this mail). The reason I've written Andy in the first place was that I wasn't sure which are the official borders of N in the PLAN line `1..N`. Especially for the case that I have one test case I am not sure if it is okay for TAP parsers if I write `1..1`. Because there is one example which writes `1..0` I suppose any positive integer is acceptable, stating it clearly in the specification would still be helpful, though, because then I could be sure that parser writers should consider that point. Please update the subsection "the Plan" accordingly. Thanks for creating and maintaining this specification! It helps a lot in developing useful tools! All the Best Erik Show quoted text
---------- Forwarded message ---------- From: Andy Lester <andy@petdance.com> Date: Mon, Mar 31, 2014 at 3:58 PM Subject: Re: TAP Specification: How to specify a PLAN line for one test? To: Erik Bernoth <erik.bernoth@gmail.com>
> currently I'm rewriting the output of a tool of mine to follow your TAP > specification (read from Wikipedia and here: >
https://metacpan.org/pod/release/PETDANCE/Test-Harness-2.64/lib/Test/Harness/TAP.pod ).
> My tool is ideally always outputting a PLAN line specifiying 1..N tests.
That's pretty old, and I probably ought to delete that Test::Harness after all these years. For everything related to TAP, go to http://testanything.org/ The latest & greatest specification is there. Andy -- Andy Lester => andy@petdance.com => www.petdance.com
It would be helpful to get testanything.com back online, as that contains a lot of great information. A plan for just one test is legal, and '1..1' is the way to declare it: perl -MTest::More -we'plan tests => 1; pass' prints: 1..1 ok 1 On 2014-03-31 14:13:03, erik.bernoth@gmail.com wrote: Show quoted text
> Dear TAP Maintainers, > > thanks to Andy Lester I was informed that Wikipedia's article on TAP > still > links to an old version of the specification. Please change that if > possible (see forwarded part of this mail). > > The reason I've written Andy in the first place was that I wasn't sure > which are the official borders of N in the PLAN line `1..N`. > Especially for > the case that I have one test case I am not sure if it is okay for TAP > parsers if I write `1..1`. Because there is one example which writes > `1..0` > I suppose any positive integer is acceptable, stating it clearly in > the > specification would still be helpful, though, because then I could be > sure > that parser writers should consider that point. Please update the > subsection "the Plan" accordingly. > > Thanks for creating and maintaining this specification! It helps a lot > in > developing useful tools! > > All the Best > Erik > > ---------- Forwarded message ---------- > From: Andy Lester <andy@petdance.com> > Date: Mon, Mar 31, 2014 at 3:58 PM > Subject: Re: TAP Specification: How to specify a PLAN line for one > test? > To: Erik Bernoth <erik.bernoth@gmail.com> > >
> > currently I'm rewriting the output of a tool of mine to follow your > > TAP > > specification (read from Wikipedia and here: > >
> https://metacpan.org/pod/release/PETDANCE/Test-Harness- > 2.64/lib/Test/Harness/TAP.pod > ).
> > My tool is ideally always outputting a PLAN line specifiying 1..N > > tests.
> > That's pretty old, and I probably ought to delete that Test::Harness > after all these years. > > For everything related to TAP, go to http://testanything.org/ The > latest & greatest specification is there. > > Andy > > -- > Andy Lester => andy@petdance.com => www.petdance.com


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.