Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Autotesting dependencies compatibility

by vsespb (Hermit)
on Jun 19, 2013 at 18:42 UTC ( #1039822=note: print w/ replies, xml ) Need Help??


in reply to Re: Autotesting dependencies compatibility
in thread Autotesting dependencies compatibility

I would exclude "the number of versions for each child dependency for your dependent modules". (2+ level dependencies).

If XYZ depends on ABC, and ABC depends on DEF.

XYZ should be tested with all versions of ABC.

and ABC should be tested with all versions of DEF.

No need to test XYZ with all versions of DEF.

If XYZ uses DEF directly, it should list it in prereqs. (tools like CPANTS can detect this)


Comment on Re^2: Autotesting dependencies compatibility
Re^3: Autotesting dependencies compatibility
by MidLifeXis (Prior) on Jun 19, 2013 at 18:47 UTC

    I disagree. What if your use of ABC passes a parameter to it that tickles an incompatible behavior in a particular version of DEF? Until a test is included in ABC that replicates your usage, the problem will not be uncovered in your testing scenario.

    --MidLifeXis

      What if your use of ABC passes a parameter to it that tickles an incompatible behavior in a particular version of DEF?

      Then we hope that ABC is a good module and has a testsuite that tests that DEF works well with all parameters, also we hope that ABC validates input.

      If this parameter is an complex object of class PQR, that is possible, that DEF requires/uses that class. So all PQR versions tested with DEF. Or maybe XYZ tested with all versions of PQR.

      It's unlikely that both use PQR but none "use"'s it.

      On the other side it's possible that a module does not have testsuite (except one "use_ok") at all and works like "garbage in - garbage out" or sometimes just "garbage out". Obviously tests won't help there.

      Anyway, better test something than nothing.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-09-21 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (165 votes), past polls