Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Perl CPAN test metadata

by Anonymous Monk
on Aug 23, 2010 at 06:09 UTC ( #856639=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl CPAN test metadata
in thread Perl CPAN test metadata

I don't understand what advantage this has over xt? Anything extra that only author wants to run you can stuff in xt and run with prove

Replies are listed 'Best First'.
Re^4: Perl CPAN test metadata
by eyepopslikeamosquito (Chancellor) on Aug 23, 2010 at 07:12 UTC

    I'm contemplating the general problem of how best to classify and organize tests. As a specific example, you might classify and organize your tests like this:

    xt/author/pod-coverage.t xt/author/code-coverage.t xt/author/perl-critic.t xt/stress/one-minute-test-run-under-memory-pressure.t xt/stress/one-hour-thread-safety-test.t xt/stress/twenty-four-hour-memory-leak-test.t xt/doco/test-user-doco-1.t xt/rtbug/rt123.t xt/rtbug/rt456.t # ...
    An obvious limitation of such a scheme is that a test cannot simultaneously be in two different categories. For example, where should I place an rtbug test that is also a stress test? And a "stress" test may or may not be "long running" - what if I want to run all stress tests, but not the "long running" ones? Arguably, the short running stress tests should be in t/ and not xt/, so that they are run by "make test". Property-like metadata solves this problem, akin to adding "tags" to your photo collection. Tools like prove could be enhanced to allow you to specify boolean combinations of test metadata that you want to run. Maybe what I'm proposing is YAGNI. It seems I'll need to come up with some specific, compelling use cases before I could hope to gain any support for this idea.

    Update: Note that the xt/ directory layout recommended by Module::Install::ExtraTests is:

    xt/author - run when the tests are being run in an author's working c +opy xt/smoke - run when the dist is being smoked (AUTOMATED_TESTING=1) xt/release - run during "make disttest"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://856639]
help
Chatterbox?
LanX blame Canada!
[Discipulus]: to crash is not the default behaviour of IE? ;=)
[Discipulus]: so every library (js) to sdelect and modify the id parameters can be good.
[Discipulus]: I never understood something: I can on the fly modify the XML structure of the SVG using for example XML::Twig ?
[Corion]: Discipulus: If you want to rewrite the SVG, then yes, something like XML::Twig should be enough. I would try to not modify the SVG but only modify the display, but so far I haven't convinced IE to change the style...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-03-23 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.