Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The preceding lab demonstrated how to skip certain tests under certain conditions. You may find cases where an entire test file shouldn't run—for example, when testing platform X-specific features on platform Y will produce no meaningful results. Test::More provides a bit of useful syntax for this situation.
Use the plan function on its own instead of specifying the tests in the use( ) statement. The following code checks to see if the current weekday is Tuesday. If it is not, the test will skip all of the tests. Save it as skip_all.t: