wrong usage on your part

I've no reason to doubt you, but I'm still struggling to understand. The Test::Builder::skip documentation suggests to me that my usage is correct. It says that calling skip() "Skips the current test". By comparison, the skip_all() documentation says that skip_all() "Skips all the tests" - and that's exactly what happens when I replace:
$self->builder->skip('Wanting to skip the DEMO_1 tests');
with:
$self->builder->skip_all('Wanting to skip all tests');
With that change in place, things dwim perfectly. I find that all of the DEMO_1 and DEMO_2 tests are skipped - unless the DEMO_2 tests have been run first, in which case only the DEMO_1 tests get skipped.

I also don't understand how one would apply a skip() test if it is "just another test, like ok(...)". massa, is there an example somewhere of how Test::Builder::skip() is meant to be put to a useful purpose ?

Cheers,
Rob

In reply to Re^2: Test::Builder::skip() not dwimming. by syphilis
in thread Test::Builder::skip() not dwimming. by syphilis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.