- CONFIGURATION AND ENVIRONMENT
- BUGS AND LIMITATIONS
- LICENSE AND COPYRIGHT
Test::Approvals::Reporters::FirstWorkingReporter - Report using the first reporter that appears to be working in the test environment.
This documentation refers to Test::Approvals::Reporters::FirstWorkingReporter version v0.0.5
use Test::Approvals::Reporters; my @reporters = ( Test::Approvals::Reporters::BeyondCompareReporter->new(), Test::Approvals::Reporters::CodeCompareReporter->new(), ); my $reporter = Test::Approvals::Reporters::FirstWorkingReporter->new( reporters => \@reporters ); my $received = 'test.received.txt'; my $approved = 'test.approved.txt'; $reporter->report($received, $approved);
Use this module to create a MultiReporter that chooses the first reporter it can find which appears to be working in the test environment.
my $received = 'test.received.txt'; my $approved = 'test.approved.txt'; $reporter->report($received, $approved);
If any reporter is working in the test environment, use it to report.
my $working = $reporter->is_working_in_this_environment;
If any reporter is working in the test environment, return a true value.
None at this time.
CONFIGURATION AND ENVIRONMENT
Carp File::Spec List::MoreUtils List::Util Moose Moose::Util
BUGS AND LIMITATIONS
Windows-only. Linux/OSX/other support will be added when time and access to those platforms permit.
Jim Counts - @jamesrcounts
LICENSE AND COPYRIGHT
Copyright (C) 2013 Jim Counts
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.