Prima::Test - GUI test tools
The module contains a small set or tool used for testing of Prima-related code together with standard perl Test:: suite.
Test::
use Test::More; use Prima::Test; plan tests => 1; ok( create_window, "can create window");
Creates a standard simple Prima window, returns its handle
These manipulate the state of an internal $flag that stops event loop when set.
$flag
Waits for the flag to be raised in 500 msec, or returns false.
By default fires skip_all condition if running without 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.
Upasana Shukla, <me@upasana.me>, Dmitry Karasik, <dmitry@karasik.eu.org>.
Prima, t/*/*.t
To install Prima, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prima
CPAN shell
perl -MCPAN -e shell install Prima
For more information on module installation, please visit the detailed CPAN module installation guide.