Code-Style-Kit
view release on metacpan or search on metacpan
"Log::Any::Adapter" : "0",
"Mojo::Base" : "0",
"Moo" : "0",
"Moo::Role" : "0",
"Moose" : "0",
"Moose::Role" : "0",
"MooseX::NonMoose" : "0",
"Pod::Coverage::TrustPod" : "0",
"Test2::V0" : "0",
"Test::Deep" : "0",
"Test::Fatal" : "0",
"Test::More" : "0.88",
"Test::NoTabs" : "0",
"Test::Perl::Critic" : "0",
"Test::Pod" : "1.41",
"Test::Pod::Coverage" : "1.08",
"Test::Spelling" : "0.12",
"Test::Warnings" : "0",
"Try::Tiny" : "0",
"Type::Params" : "0",
"Types::Standard" : "0",
lib/Code/Style/Kit/Parts.pod view on Meta::CPAN
imports L<< C<Type::Params> >> and L<< C<Types::Standard> >>
=head2 C<Autobox>
imports L<< C<autobox::Core> >>, L<< C<autobox::Camelize> >>, L<<
C<autobox::Transform> >>
=head2 C<Test>
defines the C<test> feature, which imports L<< C<Test::More> >>, L<<
C<Test::Deep> >>, L<< C<Test::Fatal> >>, L<< C<Test::Warnings> >>,
adds F<t/lib> to C<@INC>, and sets up L<< C<Log::Any::Adapter::TAP>
>>.
=head2 C<Test2>
defines the C<test> feature, which imports L<< C<Test2::V0> >>, adds
F<t/lib> to C<@INC>, and sets up L<< C<Log::Any::Adapter::TAP> >>.
=head1 AUTHOR
lib/Code/Style/Kit/Parts/Test.pm view on Meta::CPAN
use Import::Into;
sub feature_test_export {
my ($self, $caller) = @_;
require Test::More;
Test::More->import::into($caller);
require Test::Deep;
Test::Deep->import::into($caller);
require Test::Fatal;
Test::Fatal->import::into($caller);
require Test::Warnings;
Test::Warnings->import::into($caller);
require lib;
lib->import::into($caller, 't/lib');
require Log::Any::Adapter;
# log to TAP, showing the category, skipping the "how to use
# this" message, and showing all log messages
$ENV{TAP_LOG_ORIGIN}=1;
$ENV{TAP_LOG_SHOW_USAGE}=0;
Log::Any::Adapter->set(
lib/Code/Style/Kit/Parts/Test.pm view on Meta::CPAN
Then:
use My::Kit 'test';
# write your test
=head1 DESCRIPTION
This part defines the C<test> feature, which imports L<< C<Test::More>
>>, L<< C<Test::Deep> >>, L<< C<Test::Fatal> >>, L<< C<Test::Warnings>
>>, adds F<t/lib> to C<@INC>, and sets up L<<
C<Log::Any::Adapter::TAP> >>.
=head1 AUTHOR
Gianni Ceccarelli <gianni.ceccarelli@broadbean.com>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2019 by BroadBean UK, a CareerBuilder Company.
( run in 0.843 second using v1.01-cache-2.11-cpan-54e63673c56 )