|Syntactic Confectionery Delight|
Run certain tests automatically using Test::Classby moez507 (Novice)
|on Apr 02, 2014 at 15:15 UTC||Need Help??|
moez507 has asked for the
wisdom of the Perl Monks concerning the following question:
I am writing some automated regression tests with Test::Class. Before each test , I wish to check if the test is running on production. If yes, to stop the test.
However, I do not wish to depend on the programmer to remember to add this test in. Is there some way to tell each test to run this as a setup , without having to remember to code this piece in for each time a new test is written ?
I tried creating a base class and having all my tests inherit from the same. However, the tests in the base class are executing last when I want them to execute first!