moez507 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks!
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!
Thanks,
Moez.
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!
Thanks,
Moez.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Run certain tests automatically using Test::Class
by MidLifeXis (Monsignor) on Apr 02, 2014 at 18:33 UTC | |
Re: Run certain tests automatically using Test::Class
by marinersk (Priest) on Apr 02, 2014 at 21:38 UTC | |
by moez507 (Novice) on Apr 03, 2014 at 15:37 UTC | |
Re: Run certain tests automatically using Test::Class
by stonecolddevin (Parson) on Apr 02, 2014 at 18:35 UTC |
Back to
Seekers of Perl Wisdom