in reply to Extracting/embedding sample files in POD

Why? Consider the popularity level :
1 https://metacpan.org/requires/distribution/POD-Tested?sort=%5B%5B2%2C1%5D%5D
1 https://metacpan.org/requires/distribution/Test-Pod-Snippets?sort=%5B%5B2%2C1%5D%5D
8 https://metacpan.org/requires/distribution/Test-Inline?sort=%5B%5B2%2C1%5D%5D

Is the author dogfooding? I don't see a lot of authors using these things

  • Comment on Re: Extracting/embedding sample files in POD

Replies are listed 'Best First'.
Re^2: Extracting/embedding sample files in POD
by Yary (Pilgrim) on Feb 17, 2015 at 17:46 UTC
    Hmmm, your last link shows that Moose uses inline tests; if it is a popularity contest, that is one heavy vote in favor!

      Hmmm, your last link shows that Moose uses inline tests; if it is a popularity contest, that is one heavy vote in favor!

      I doubt that :) Moose only has 10 authors. Its only used for the cookbook.

      OTOH, Test::Inline isn't always listed as a dependency, http://grep.cpan.me/?q=%3Dbegin+testing reveals a few more distributions that depend on it ... kinda not really (at least a few authors tried it once upon a time)

      Extracting tests from pod seems a bit backwards ... embedding makes a bit more sense, but still seems like busy work ... but installing the tests and telling the user to UTSL for complete/runnable examples? That seems "just right" :)

      Consider Test::Class/https://metacpan.org/requires/distribution/Test-Class?sort=%5B%5B2%2C1%5D%5D which has 127 distributions depending on it ...

      Like keanu once said, the problem is choice :)