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 ;-)