Test::XML::Simple 0.09 review

Download
by rbytes.net on

Test::XML::Simple is an easy testing for XML. SYNOPSIS use Test::XML::Simple tests=>5; xml_valid $xml, "Is valid XML";

License: Perl Artistic License
File size: 5K
Developer: Joe McMahon
0 stars award from rbytes.net

Test::XML::Simple is an easy testing for XML.

SYNOPSIS

use Test::XML::Simple tests=>5;
xml_valid $xml, "Is valid XML";
xml_node $xml, "/xpath/expression", "specified xpath node is present";
xml_is, $xml, '/xpath/expr', "expected value", "specified text present";
xml_like, $xml, '/xpath/expr', qr/expected/, "regex text present";
xml_is_deeply, $xml, '/xpath/expr', $xml2, "structure and contents match";

# Not yet implemented:
# xml_like_deeply would be nice too...

Test::XML::Simple is a very basic class for testing XML. It uses the XPath syntax to locate nodes within the XML. You can also check all or part of the structure vs. an XML fragment.

Requirements:
Perl

Test::XML::Simple 0.09 keywords