Statocles::Test - Common test routines for Statocles
version 0.082
This module provides some common test routines for Statocles tests.
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.
%site_args
You must provide a theme (probably using the one in t/share/theme).
theme
t/share/theme
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.
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
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2016 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Statocles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Statocles
CPAN shell
perl -MCPAN -e shell install Statocles
For more information on module installation, please visit the detailed CPAN module installation guide.