DTS_UT::Test::Harness::Straps::NoExec - subclass of Test::Harness::Straps to eval test file code instead of forking a process to execute it.
DTS_UT::Test::Harness::Straps::NoExec will execute a test file code (Perl code, of course) by using an eval instead of forking a process to execute the script and read the results from it.
DTS_UT::Test::Harness::Straps::NoExec
eval
This is usefull to execute test in a web application running in a Apache/mod_perl or IIS/PerlEz environment, were forking a new process from the server process itself is never a good idea for performance reasons. There are some issues forking with IIS 5 with Perl, so this modules solves this problem as well.
DTS_UT::Test::Harness::Straps::NoExec is a hack from Test::Harness::Straps module. Those modules are not maintained anyore, so if you're taking serious about using it, my recomendation is that you check out TAP::Parser module documentation.
Test::Harness::Straps
Everything that Test::Harness::Straps does.
It expects as a parameter a DTS_UT::Model::UnitTest object.
DTS_UT::Model::UnitTest
Returns a DTS_UT::Test::Harness::Straps::NoExec object.
Returns the DTS_UT::Model::UnitTest object passed as an argument for new method.
new
Overrides analyze_file method from Test::Harness::Straps class.
analyze_file
Expects as parameter the package name that will be tested. The test script than needs to change it's default output to a text file instead of STDOUT.
STDOUT
See the methods failure_output and output of Test::More::Builder class.
failure_output
output
Test::More::Builder
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
Copyright (C) 2008 by Alceu Rodrigues de Freitas Junior
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Win32::SqlServer::DTS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::SqlServer::DTS
CPAN shell
perl -MCPAN -e shell install Win32::SqlServer::DTS
For more information on module installation, please visit the detailed CPAN module installation guide.