You could store them in global variables.

The tricky part is making sure that the execute in the order you want them to.

The standard Test::Unit framework puts together test suites in a somewhat random order. This is by design, because unit tests should be independent of each other and not depend on order.

Since you want to break with this convention, you should construct your own test suite rather than depend on the default methods.

Bret

On 3/28/06, Rodrigo Julian Martin <[EMAIL PROTECTED]> wrote:

Hi all,

 

I've another question… Is there a way to share variables between several .rb files which are loaded as a Test Suite? e.g. An array which is loaded in test1.rb and that I want to use in test2.rb.

 

Thanks in Advance!

Rodrigo Julian Martin


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to