NAME

ArcTestSuite - extract and run tests from the ARC YAML test suite

CONSTRUCTOR

new() - create a new test runner

my $Tests = ArcTestSuite->new(Strict => 1/0);

METHODS

LoadFile() - load a YAML file of tests

$Tests->LoadFile( $yamlfile );

Load the tests from a YAML file

SetOperation() - prepare to sign or validate

$Tests->SetOperation( 'sign'|'validate' );

Tell it whether these are signing or validateing tests

DumpTests

$Tests->DumpTests("dir/%s")

Dump each test message to a file as the test is run. The argument is a printf pattern for the filename with %s as the test name.

RunAllScenarios() - run all test scenarios

$Test->RunAllScenarios($nskip)

Iterate over all scenarios in the YAML and run the tests. The optional argument is how many tests to skip before actual testing.

RunScenario() - run all test scenarios

$Test->RunScenario($scenario)

Iterate over all the tests in the scenario and run them.

AUTHORS

Bron Gondwana, <brong@fastmailteam.com>, John Levine, <john.levine@standcore.com>

COPYRIGHT AND LICENSE

Copyright (C) 2017 by FastMail Pty Ltd Copyright 2017 by Standcore LLC

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.