Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: Autotesting dependencies compatibility

by vsespb (Chaplain)
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

Replies are listed 'Best First'.
Re^3: Autotesting dependencies compatibility
by MidLifeXis (Monsignor) 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.


      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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039822]
[james28909]: ok i have a new question ;)
[james28909]: i am not sure how to ask google this either
[james28909]: i am getting the current time on my machine with scalar localtime;
[james28909]: i am scraping a website and retrieving a date stamp of an article.
[james28909]: well time/data stamp of the article
[stevieb]: james28909: what's the problem/question?
[james28909]: it is not an absolute date like "27" or "31". sometimes it is like wednesday or friday
[james28909]: and i need to format those special instances into an absolute date instead of "yesterday"
[stevieb]: ask a question on SoPW, and include at least a half-dozen examples of the input, and at least one example of expected output
[davido]: Exactly: SoPW. This isn't going to be solved easily in the CB.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-04-29 02:34 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (531 votes). Check out past polls.