Ross McFarland > Gtk2-1.043 > Gtk2::Test::Helper

Download:
Gtk2-Perl/Gtk2-1.043.tar.gz

Annotate this POD

CPAN RT

New  2
Open  6
View/Report Bugs
Source   Latest Release: Gtk2-1.224

NAME ^

Gtk2::Test::Helper - Code to make testing Gtk2 and friends simpler.

SYNOPSIS ^

  use Gtk2::TestHelper tests => 10;

DESCRIPTION ^

A simplistic module that brings together code that would otherwise have to be copied into each and every test. The magic happens during the importing process and therefore all options are passed to the use call. The module also use's strict, warnings, Gtk2, and Test::More so that the individual tests will not have to. The only required option is the number of tests. The module installs a key snooper that causes all keyboard input to be ignored.

OPTIONS ^

tests

The number of tests to be completed.

noinit

Do not call Gtk2->init_check, assume that it is not necessary.

nowin32

Set to true if all tests are to be skipped on the win32 platform.

at_least_version

A reference to a list that is checked with Gtk2->CHECK_VERSION.

skip_all

Simply skip all tests with the reason provided.

SEE ALSO ^

perl(1), Gtk2(3pm).

AUTHORS ^

The Gtk2-Perl Team.

COPYRIGHT AND LICENSE ^

Copyright 2003 by the gtk2-perl team.

LGPL, See LICENSE file for more information.

syntax highlighting: