/
View dependency graph
Depends on
- libmodule-build-perl (libmodule-build-perl)
- libtest-longstring-perl (libtest-longstring-perl)
- libtest-pod-coverage-perl (libtest-pod-coverage-perl)
- libtest-pod-perl (libtest-pod-perl)
- libxml-libxml-perl (libxml-libxml-perl)
- perl (perl)
- debhelper-compat
README (full)
#Test::XML::Simple
This module provides a test class which makes it easy to do basic Test::More style tests on XML input.
use Test::XML::Simple test => 5;
xml_valid $xml, 'Is valid XML';
xml_node $xml, "/xpath/expression", "specified xpath node is present";
xml_text_is $xml, '/xpath/expr', "expected value", "specified text present";
xml_text_like $xml, '/xpath/expr', qr/expected/, "regex text present";
xml_is_deeply $xml, '/xpath/expr', $xml_fragment, "fragment matches path";
##INSTALLATION
To install this module type the following:
perl Makefile.PL make make test make install
##DEPENDENCIES
This module requires these other modules and libraries:
Test::Builder Test::LongString Test::More XML::LibXML
You should be able to use this module with any Perl from version 5.8 and above.
##COPYRIGHT AND LICENCE
Copyright (C) 2005-2016 by Yahoo! and Joe McMahon
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8 or, at your option, any later version of Perl 5 you may have available.
| dir | debian/ |
| dir | lib/ |
| dir | t/ |
| file | Build.PL |
| file | Changes |
| file | MANIFEST |
| file | META.json |
| file | META.yml |
| file | Makefile.PL |
| file | README |
| file | README.md |
