The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::Starch - Test core features of starch.

SYNOPSIS

    use Test2::V0;
    use Test::Starch;
    
    my $tester = Test::Starch->new(
        plugins => [ ... ],
        store => ...,
        ...,
    );
    $tester->test();
    
    done_testing;

DESCRIPTION

This class runs the core Starch test suite by testing public interfaces of Starch::Manager, Starch::State, and Starch::Store. These are the same tests that Starch runs when you install it from CPAN.

This module is used by stores and plugins to ensure that they have not broken any of the core features of Starch. All store and plugin authors are highly encouraged to run these tests as part of their test suite.

Along the same lines, it is recommended that if you use Starch that you make a test in your in-house test-suite which runs these tests against your configuration.

This class takes all the same arguments as Starch and saves them to be used when "new_manager" is called by the tests. Unlike Starch, if the store argument is not passed it will defailt to a Memory store.

METHODS

new_manager

Creates a new Starch::Manager object and returns it. Any arguments you specify to this method will override those specified when creating the Test::Starch object.

test

Calls "test_manager", "test_state", and "test_store".

test_manager

Tests Starch::Manager.

test_state

Test Starch::State.

test_store

Tests the Starch::Store.

SUPPORT

See "SUPPORT" in Starch.

AUTHORS

See "AUTHORS" in Starch.

COPYRIGHT AND LICENSE

See "COPYRIGHT AND LICENSE" in Starch.