Code::Style::Kit::Parts::Test2 - commonly used test modules (Test2 style)
version 1.0.3
package My::Kit; use parent qw(Code::Style::Kit Code::Style::Kit::Parts::Test2); 1;
Then:
use My::Kit 'test'; # write your test
This part defines the test feature, which imports Test2::V0, adds t/lib to @INC, and sets up Log::Any::Adapter::TAP.
test
Test2::V0
@INC
Log::Any::Adapter::TAP
Any argument given to the test feature will be passed to Test2::V0:
use My::Kit test => [ -srand => 0, -target => 'My::Class' ];
Gianni Ceccarelli <gianni.ceccarelli@broadbean.com>
This software is copyright (c) 2019 by BroadBean UK, a CareerBuilder Company.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Code::Style::Kit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Code::Style::Kit
CPAN shell
perl -MCPAN -e shell install Code::Style::Kit
For more information on module installation, please visit the detailed CPAN module installation guide.