NAME

Test::Wait - Make tests wait for manual testing purposes.

DESCRIPTION

Test::Wait is a tool for use in conjunction with test libraries such as Test::More for manual testing purposes.

It was initially designed for use in Selenium based tests however it can be used in any test script.

Test::Wait provides a simple interface to pause test scripts at any given point, allowing you to inspect the test output or use the test-created data to run manual tests against the application in a browser or terminal.

SYNOPSIS

use Test::Wait;

wait_stdin( [ 'i'm waiting for you to hit return' ] );

wait_x( [ [ int seconds_to_wait ] [, "i'm waiting $seconds_to_wait seconds" ] ] );

INTERFACE

wait_stdin( [ str message ] ) : nothing

wait ( for return key press ) before continuing a test.

ignored if running under prove or make test.

wait_x( [ [ int seconds_to_wait ] [, str message ] ] ) : nothing

wait for $seconds_to_wait seconds before continuing a test.

ignored if running under prove or make test.

SEE ALSO

Test::More, Test::Builder, Test::Simple, Selenium::Remote::Driver, Test::Harness

AUTHORS

Ben Hare <ben@benhare.com>

CREDITS

Inspired by code written by Chris Hutchinson <chris@hutchinsonsoftware.com>.

COPYRIGHT

Copyright (c) Ben Hare <ben@benhare.com>, 2014.

This program is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html