You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CGI::Test would be the obvious starting point but in order to collect coverage stats the CGI should not be run in a child process. This is hacky but simple: given a $url fragment like 'p=review' we can do something like
local $ENV{QUERY_STRING} = $url;
local $ENV{REQUEST_METHOD} = 'GET';
local $ENV{GATEWAY_INTERFACE} = '1';
chdir "$ENV{SDRROOT}/crms/cgi";
my ($stdout, $stderr) = Capture::Tiny::capture {
eval {
do './crms';
};
ok(!$@, "no error with $url");
};
The text was updated successfully, but these errors were encountered:
CGI::Test
would be the obvious starting point but in order to collect coverage stats the CGI should not be run in a child process. This is hacky but simple: given a$url
fragment like'p=review'
we can do something likeThe text was updated successfully, but these errors were encountered: