NAME

App::PAIA::Tester - facilitate PAIA client testing

SYNOPSIS

use Test::More;
use App::PAIA::Tester;

new_paia_test;

paia qw(config base http://example.org/);
is error, undef;

paia qw(config);
is_deeply stdout_json, {
    base => 'http://example.org/'
};

paia qw(login -u alice -p 1234);
is stderr, '';
is exit_code, 0;

my $token = stdout_json->{access_token};
ok $token;

done_paia_test;

DESCRIPTION

The module implements a simple a singleton wrapper around App::Cmd::Tester to facilitate writing tests for and with the paia client App::PAIA.