Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: persistant environment testing (was Why a taint flag on test files)

by xdg (Monsignor)
on Oct 14, 2005 at 10:15 UTC ( [id://500183]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Test::More 'no_plan';
    
    eval "require My::Module; My::Module->import()";
    
    # test behaviors without INIT/CHECK
    
  2. or download this
    # t/Test/BehaviorA.pm
    package t::Test::BehaviorA;
    ...
        # put 42 tests for Behavior A here
    }
    1; # need this
    
  3. or download this
    # 01-test-A-normal.t
    use t::Test::BehaviorA qw( run_tests_for_A );
    ...
    use My::Module;
    
    run_tests_for_A();
    
  4. or download this
    # 01-test-A-persistant.t
    use t::Test::BehaviorA qw( run_tests_for_A );
    ...
    eval "require My::Module; My::Module->import()";
    
    run_tests_for_A();
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-24 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found