Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: What's in a Repo?

by jau (Hermit)
on Aug 07, 2010 at 12:45 UTC ( #853561=note: print w/ replies, xml ) Need Help??


in reply to What's in a Repo?

As I see it, though, it's difficult to skip a test that requires unavailable modules.

Not really:

#!/usr/bin/perl use strict; use warnings 'FATAL' => 'all'; use Test::More; BEGIN { if ( eval { require Cache::Memcached } ) { plan tests => 1; } else { plan skip_all => "Cache::Memcached is not installed"; } } { require_ok( 'My::Module' ); # or whatever you want to test }


Comment on Re: What's in a Repo?
Download Code
Re^2: What's in a Repo?
by Xiong (Hermit) on Aug 07, 2010 at 13:17 UTC

    Example: Advanced testing requires Test::More 0.94 while basic tests do not. I don't know exactly how to handle this. You're urged to get involved. I won't pretend I can't use help. But this is a side issue to the main point of this node.

    Note: Contents may change.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://853561]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2015-07-02 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls