Module::Install::TestBase - Module::Install Support for YAML::Tests
# Example Makefile.PL use inc::Module::Install; name 'YAML::Foo'; all_from 'lib/YAML/Foo.pm'; use_yaml_tests; WriteAll;
By adding the single line:
use_yaml_tests;
to your Module::Install based Makefile.PL, when you then run the command:
Module::Install
Makefile.PL
perl Makefile.PL
the YAML::Tests test files will be copied into your module's t/ directory.
t/
If you are using YAML::Tests in your own YAML module, create a file called t/yaml_tests.yaml. Here is an example:
YAML::Tests
t/yaml_tests.yaml
# YAML::Tests Config File # The name of your module yaml_module: YAML::Syck # Set this to '1' if your module uses XS use_blib: 1 # List of test components to *not* copy to your module area exclude: - alias.t - null.t
Ingy döt Net <ingy@cpan.org>
Copyright (c) 2007. Ingy döt Net. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'döt'. Assuming UTF-8
To install YAML::Tests, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YAML::Tests
CPAN shell
perl -MCPAN -e shell install YAML::Tests
For more information on module installation, please visit the detailed CPAN module installation guide.