in reply to How to Test Output from the Standard Output
See also Test::Output. This provides some utility functions to do exactly this.
use strict; use Test::Output; use Test::More tests => 1; use Test_Package; stdout_is( sub{Test_Package->testing()}, 'okay', 'Testing okay');
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to Test Output from the Standard Output
by Khen1950fx (Canon) on Jun 10, 2010 at 10:18 UTC |
In Section
Seekers of Perl Wisdom