NAME

01_test_classes.t - Load and run unit test modules based on Test::Class

SYNOPSIS

./Build test --test_files=t/01_test_classes.t

prove -b t/01_test_classes.t

DESCRIPTION

This script leverages Test::Class::Load to automatically discover, load, and run tests in modules that are based on Test::Class.

This specific version is looking for the TestStuite in blib, and not in t/lib. IF one were to need Test::Class based modules in t/lib then one could

RUNNING INDIVIDUAL TESTS

You can still run the tests in an individual test class, just by running them the same way that you would run a test script.

For example:

./Build test --test_files=t/lib/My/Module/TestSuite.pm

prove -b -It/lib t/lib/My/Module/TestSuite.pm
  

Note that prove requires an additional -I argument.

And remember that you can set the TEST_METHOD environment variable to control exactly which test methods will be run.

WHY ARE MY TESTS BEING SKIPPED?

When running tests in this fashion, Test::Class skips the remaining assertions within a test method as soon as an assertion fails. This kinda sucks, but it usually doesn't cause too much aggrivation as long as you know that it is happening.