NAME
Statocles::Test - Common test routines for Statocles
DESCRIPTION
This module provides some common test routines for Statocles tests.
SUBROUTINES
build_test_site
my $site = build_test_site( %site_args )
Build a site for testing. The build and deploy will be set correctly to temporary directories. %site_args
will be given to the Statocles::Site constructor.
You must provide a theme
(probably using the one in t/share/theme
).
build_test_site_apps
my ( $site, $build_dir, $deploy_dir ) = build_test_site_apps( $share_dir, %site_args );
Build a site for testing, with some apps. Returns the site, the build dir, and the deploy dir.
build_temp_site
my ( $tmpdir, $config_fn, $config ) = build_temp_site( $share_dir );
Build a config file so we can test config loading and still use temporary directories