yt - YAML Tester for Perl Implementations
# Run tests with yt > yt > yt -MYAML::Syck > yt -MYAML::Tiny -v dump.t load.t # List the yt tests > yt --list # Run benchmarks against the various YAML modules > yt --benchmark > yt --benchmark -r5000 # Run 5000 times > yt --benchmark YAML::Syck YAML::LibYAML # Compare two modules # Show the version of yt, YAML::Tests and the YAML modules on your system > yt --version
This command line tool, yt, can be used to run the entire YAML-Tests suite against a particular Perl YAML implementation.
yt
yt is basically a wrapper around prove. As such, it accepts and passes along prove command line options. The main difference is that it knows where the YAML-Tests live and how to set up the environment to run them.
prove
yt relies on two environment variables:
This variable should be set to the absolute pathname of the directory containing the contents of the YAML-Tests module distribution.
You can get YAML-Tests from CPAN or its SVN repository:
http://svn.kwiki.org/ingy/YAML-Tests/
This variable conatins the name of the Perl YAML module you want to test. It can be set as an environment variable, but is normally passed to yt by the -M flag:
-M
yt -MYAML::Syck
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.