package Test::Approvals::Reporters::P4MergeReporter;
use strict;
use warnings FATAL => 'all';
use version; our $VERSION = qv('v0.0.5');
{
use Moose;
with 'Test::Approvals::Reporters::Win32Reporter';
with 'Test::Approvals::Reporters::Reporter';
with 'Test::Approvals::Reporters::EnvironmentAwareReporter';
sub exe {
return locate_exe( 'Perforce', 'p4merge.exe' );
}
sub argv {
return '"APPROVED" "RECEIVED" "APPROVED" "APPROVED"';
}
}
__PACKAGE__->meta->make_immutable;
1;
__END__
=head1 NAME
Test::Approvals::Reporters::P4MergeReporter - Report failures with
P4Merge
=head1 VERSION
This documentation refers to Test::Approvals::Reporters::P4MergeReporter version v0.0.5
=head1 SYNOPSIS
use Test::Approvals::Reporters;
my $reporter = Test::Approvals::Reporters::P4MergeReporter->new();
$reporter->report( 'r.txt', 'a.txt' );
=head1 DESCRIPTION
This module reports using P4Merge. Download P4Merge at
http://www.perforce.com/product/components/perforce-visual-merge-and-diff-tools
=head1 SUBROUTINES/METHODS
=head2 argv
my $argv = $reporter->argv();
Retrieve the argument template used to invoke the reporter from the shell.
=head2 exe
my $exe = $reporter->exe();
Retrieve the path to the reporter's executable.
=head1 DIAGNOSTICS
None at this time.
=head1 CONFIGURATION AND ENVIRONMENT
Make sure you have P4Merge installed if you want to use this module.
=head1 DEPENDENCIES
=over 4
use Moose
use version
=back
=head1 INCOMPATIBILITIES
None known.
=head1 BUGS AND LIMITATIONS
Windows-only. Linux/OSX/other support will be added when time and access to
those platforms permit.
=head1 AUTHOR
Jim Counts - @jamesrcounts
=head1 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
L<http://www.apache.org/licenses/LICENSE-2.0>
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.