- SEE ALSO
Git::Repository::Plugin::Test - Helper methods for testing interactions with Git
use Test::More tests => 2; use Git::Repository qw(Test); my $repo = Git::Repository->new(...); # run Git commands as tests $repo->run_exit_ok('status'); $repo->run_exit_is(1, 'nonexistant-subcommand');
run_exit_is methods to the Git::Repository object that can be used for testing Git operations.
Git::Repository::Plugin::Test adds the following methods:
run but exceptions are caught and reported as test failures.
run but exceptions are caught and reported as test failures unless exit code matches expected exit code.
Test for the existance of a branch.
Nathaniel G. Nutter <email@example.com>
Copyright 2013 - Nathaniel G. Nutter
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.