Scroll to navigation

Prima::sys::Test(3) User Contributed Perl Documentation Prima::sys::Test(3)

NAME

Prima::sys::Test - GUI test tools

DESCRIPTION

The module contains a small set of tools used for testing of Prima-related code together with the standard perl "Test::" suite.

SYNOPSIS

        use Test::More;
        use Prima::Test;
        plan tests => 1;
        ok( create_window, "can create window");

USAGE

Methods

Creates and returns a standard simple Prima window
These manipulate the state of the internal $flag that stops the event loop when set.
Waits for the flag to be raised in 500 msec, or returns false.

no-X11 environment

By default fires skip_all condition if running without an X11 connection. If the test can be ran without X11, use as:

        use Prima::Test qw(noX11);

which signals the module not to do any GUI initialization.

AUTHORS

Upasana Shukla, <me@upasana.me>, Dmitry Karasik, <dmitry@karasik.eu.org>.

SEE ALSO

Prima, t/*/*.t

2024-02-01 perl v5.38.2