| 1 | package Code::Style::Kit::Parts::Test2; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | our $VERSION = '1.0.3'; # VERSION | ||
| 5 | # ABSTRACT: commonly used test modules (Test2 style) | ||
| 6 | |||
| 7 | |||
| 8 | use Import::Into; | ||
| 9 | |||
| 10 | sub feature_test_takes_arguments { 1 } | ||
| 11 | sub feature_test_export { | ||
| 12 | my ($self, $caller, @arguments) = @_; | ||
| 13 | |||
| 14 | require Test2::V0; | ||
| 15 | Test2::V0->import::into($caller, @arguments); | ||
| 16 | require lib; | ||
| 17 | lib->import::into($caller, 't/lib'); | ||
| 18 | require Log::Any::Adapter; | ||
| 19 | # log to TAP, showing the category, skipping the "how to use | ||
| 20 | # this" message, and showing all log messages | ||
| 21 | $ENV{TAP_LOG_ORIGIN}=1; | ||
| 22 | $ENV{TAP_LOG_SHOW_USAGE}=0; | ||
| 23 | Log::Any::Adapter->set( | ||
| 24 | TAP => ( filter => 'none' ), | ||
| 25 | ); | ||
| 26 | } | ||
| 27 | |||
| 28 | 1; | ||
| 29 | |||
| 30 | __END__ |