Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Synopsis CPAN distribution.

Report information
The Basics
Id: 52684
Status: resolved
Priority: 0/
Queue: Test-Synopsis

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

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



Subject: pod directive to skip Test::Synopsis
Date: Sat, 12 Dec 2009 07:15:58 +1100
To: bug-Test-Synopsis [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
It'd be good if it was possible within the pod of a file to tell Test::Synopsis that the code is no good and should be skipped. I know individual synopsis_ok() calls could omit selected bad files, but I think it'd be easier to keep a badness indicator in a file. If you update the offending synopsis code in the future then you don't have to remember to also change the .t script. I got the effect I wanted from =for test_synopsis 1; =for test_synopsis __END__ which chops off the evalled code. Perhaps there's a cleaner way. Including a "1;" in the evalled string could allow just an __END__. A cute possibility could be to have an __END__ or similar part-way through the synopsis code, if for example the first half is good, but the second half doomed (for whatever reason -- too much pseudocode, unavailable modules, etc). Are the "=for test_synopsis" bits shuffled up to the start of the evalled string currently? Keeping them in sequence with the displayed code could be more logical.
This can now be done with =for BEGIN { die "SKIP: don't wanna test this yet" } See RT#54731: https://rt.cpan.org/Ticket/Display.html?id=54731 -- Cheers, ZZ [ https://metacpan.org/author/ZOFFIX ]