Add a new method to t/lib/WebGUI/Test.pm to return the path to the test
collateral. Update all tests to use the new method. Change testCodebase.pl to run long tests by default. To disable the long tests, use the --noLongTests switch.
This commit is contained in:
parent
40e3967b19
commit
9d0894b674
6 changed files with 55 additions and 29 deletions
|
|
@ -3,7 +3,7 @@ package WebGUI::Test;
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
our ( $SESSION, $WEBGUI_ROOT, $CONFIG_FILE, $WEBGUI_LIB );
|
||||
our ( $SESSION, $WEBGUI_ROOT, $CONFIG_FILE, $WEBGUI_LIB, $WEBGUI_TEST_COLLATERAL );
|
||||
|
||||
use Config qw[];
|
||||
use IO::Handle qw[];
|
||||
|
|
@ -50,6 +50,7 @@ BEGIN {
|
|||
$CONFIG_FILE = ( File::Spec->splitpath( $WEBGUI_ROOT ) )[2];
|
||||
$WEBGUI_ROOT = substr( $WEBGUI_ROOT, 0, index( $WEBGUI_ROOT, File::Spec->catdir( 'etc', $CONFIG_FILE ) ) );
|
||||
$WEBGUI_ROOT = File::Spec->canonpath($WEBGUI_ROOT);
|
||||
$WEBGUI_TEST_COLLATERAL = File::Spec->catdir($WEBGUI_ROOT, 't', 'supporting_collateral');
|
||||
|
||||
$WEBGUI_LIB ||= File::Spec->catpath( (File::Spec->splitpath($WEBGUI_ROOT))[0], $WEBGUI_ROOT, 'lib' );
|
||||
|
||||
|
|
@ -107,4 +108,8 @@ sub root {
|
|||
return $WEBGUI_ROOT;
|
||||
}
|
||||
|
||||
sub getTestCollateralPath {
|
||||
return $WEBGUI_TEST_COLLATERAL;
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue