Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Passing data between modules using Test::Class

by arc_of_descent (Hermit)
on Dec 13, 2006 at 07:31 UTC ( [id://589508]=note: print w/replies, xml ) Need Help??


in reply to Re: Passing data between modules using Test::Class
in thread Passing data between modules using Test::Class

Hey Adrian,

As I mentioned in my updated post, I'm now passing data by use of a class variable common to both Service_A and Service_B

Without more information on the relationship between the service objects it's hard to tell. Can you show what/why Service_B needs Service_A's test results?

I don't think that should matter. This test suite is for the Google::Adwords module. When I run the sandbox tests for, say the CampaignService test module, I then require the campaign ids for use in the AdGroupService test module. These are only for the sandbox tests, and I can test the various service modules independently otherwise.


--
Rohan

  • Comment on Re^2: Passing data between modules using Test::Class

Replies are listed 'Best First'.
Re^3: Passing data between modules using Test::Class
by adrianh (Chancellor) on Dec 13, 2006 at 10:44 UTC
    I don't think that should matter. This test suite is for the Google::Adwords module. When I run the sandbox tests for, say the CampaignService test module, I then require the campaign ids for use in the AdGroupService test module. These are only for the sandbox tests, and I can test the various service modules independently otherwise.

    Fair enough. If it were me I'd probably factor out the common code into a separate module that both test classes used, enabling me to run each class independently. But that's just me ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-19 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found