Test::Class::Moose::Role::Executor - Common code for Runner classes
version 0.97
This role implements the guts of this distribution, running all of your test classes. It's public API can be wrapped by additional roles to provide extensions to the default TCM behavior.
The actual implementations are provided by Test::Class::Moose::Executor::Sequential and Test::Class::Moose::Executor::Parallel.
Test::Class::Moose::Executor::Sequential
Test::Class::Moose::Executor::Parallel
This role provides the following public methods for extensions. If you wrap any of the methods related to test execution you are strongly encouraged to make sure that the original method is called, as these methods implement the core functionality of TCM.
This returns a boolean indicating whether or not this executor will run test classes in parallel or not.
Returns the Test::Class::Moose::Config object for this executor.
Returns the Test::Class::Moose::Report object for this executor.
Returns the list of test classes to be run, in the order that they should be run.
This is the primary entry method for test executor. It is called without any arguments and is expected to run all of the test classes defined in the test configuration.
This method is called once for each test class to be run. It is passed a single argument, the name of the test class to be run.
This method is called once for each instance of a test class to be run. For most classes this is just called once but for classes which consume the Test::Class::Moose::Role::Parameterized role, it will be called more than once.
The first argument is the test class object to be run, and the second is an instance of Test::Class::Moose::Report::Class for the class being run.
This method is called once for each test method in an instance to be run.
The first argument is the test class object to be run, the second is a method name, and the third is an instance of Test::Class::Moose::Report::Instance for the instance being run.
The first argument is the test class object to be run, the second is a control method name (like 'test_startup'), and the third is an instance of Test::Class::Moose::Report::Instance for the instance being run.
'test_startup'
Bugs may be submitted at https://github.com/houseabsolute/test-class-moose/issues.
I am also usually active on IRC as 'autarch' on irc://irc.perl.org.
irc://irc.perl.org
The source code repository for Test-Class-Moose can be found at https://github.com/houseabsolute/test-class-moose.
Curtis "Ovid" Poe <ovid@cpan.org>
Dave Rolsky <autarch@urth.org>
This software is copyright (c) 2012 - 2019 by Curtis "Ovid" Poe.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
The full text of the license can be found in the LICENSE file included with this distribution.
To install Test::Class::Moose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Class::Moose
CPAN shell
perl -MCPAN -e shell install Test::Class::Moose
For more information on module installation, please visit the detailed CPAN module installation guide.