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!
Moez.