Dist::Zilla::Plugin::Test::CreateFromMojoTemplates - Create tests from custom Mojolicious templates
; In dist.ini [Test::CreateFromMojoTemplates] directory = examples/source filepattern = ^\w+-\d+\.mojo$
Dist::Zilla::Plugin::Test::CreateFromMojoTemplates creates tests by parsing a custom file format containg Mojolicious templates and the expected rendering. See MojoX::CustomTemplateFileParser for details.
It looks for files in a given directory (by default examples/source) that matches filepattern (by default ^\w+-\d+\.mojo$).
directory
examples/source
filepattern
^\w+-\d+\.mojo$
If you have many files you can also create a template.test (currently hardcoded) file. Its content will be placed at the top of all created test files.
template.test
Erik Carlsson <info@code301.com>
Copyright 2014- Erik Carlsson
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Dist::Zilla::Plugin::Test::CreateFromMojoTemplates, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::Test::CreateFromMojoTemplates
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::Test::CreateFromMojoTemplates
For more information on module installation, please visit the detailed CPAN module installation guide.