Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How do I write a new sub in a git cloned CPAN module and test it by bypassing the Original Module

by hippo (Bishop)
on Dec 20, 2016 at 16:09 UTC ( [id://1178220]=note: print w/replies, xml ) Need Help??


in reply to How do I write a new sub in a git cloned CPAN module and test it bypassing the Original Module

I git cloned DateTime module from cpan. I already had a DateTime installed. I added a new method in DateTime.pm and worte a test for a new method added.

All good so far.

Now when I tried to run the script it uses the already installed DateTime module and not the one I have modified.

How did you run the test script? By executing make test or some other means?

  • Comment on Re: How do I write a new sub in a git cloned CPAN module and test it by bypassing the Original Module
  • Download Code

Replies are listed 'Best First'.
Re^2: How do I write a new sub in a git cloned CPAN module and test it by bypassing the Original Module
by yysachinyy (Novice) on Dec 21, 2016 at 07:41 UTC
    I used 'prove' to run the test.
      > I used prove

      With the -l option?

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found