Ingy döt Net > YAML-Tests-0.06 > Module::Install::TestBase

Download:
YAML-Tests-0.06.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Module::Install::TestBase - Module::Install Support for YAML::Tests

SYNOPSIS ^

    # Example Makefile.PL
    use inc::Module::Install;

    name            'YAML::Foo';
    all_from        'lib/YAML/Foo.pm';

    use_yaml_tests;

    WriteAll;

DESCRIPTION ^

By adding the single line:

    use_yaml_tests;

to your Module::Install based Makefile.PL, when you then run the command:

    perl Makefile.PL

the YAML::Tests test files will be copied into your module's t/ directory.

CONFIGURATION ^

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 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

AUTHOR ^

Ingy döt Net <ingy@cpan.org>

COPYRIGHT ^

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

syntax highlighting: