[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sourcing global variables in unit tests

From: Pavel Hofman
Subject: Re: Sourcing global variables in unit tests
Date: Fri, 19 Apr 2019 08:23:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Hi John

Dne 16. 04. 19 v 15:51 John W. Eaton napsal(a):

Initialization of global variables only happens once.  You can make your tests work if you clear the global values at the end of each test:

I think this is better anyway, as it makes each test stand alone and avoids leaking global values into your environment after the tests are run.

Thanks a lot for the info and best-practices. It is always good to learn from those experienced.

Best regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]