Say you have a test that starts with something like:
sub my_batch_of_tests : Test(6) {
Easy way to disable these: turn the above line to something like
sub my_batch_of_tests { # : Test(6)
When you do run_tests() on this test module, it won't run this block of tests because this function will no longer register as a test.
NOTE: this tip assumes you are using Test::More and Test::Class and have it set up so all your tests are in a module and you have a script that loads that module and does ->run_tests on the module with your tests.
No comments:
Post a Comment