Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joemcmahon/test-xml-simple
A test class which makes it easy to do basic Test::Builder-style tests on XML input
https://github.com/joemcmahon/test-xml-simple
Last synced: 11 days ago
JSON representation
A test class which makes it easy to do basic Test::Builder-style tests on XML input
- Host: GitHub
- URL: https://github.com/joemcmahon/test-xml-simple
- Owner: joemcmahon
- Created: 2009-08-21T00:21:19.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2017-01-03T19:21:36.000Z (almost 8 years ago)
- Last Synced: 2023-04-14T02:12:45.002Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
#Test::XML::Simple
[![Build Status](https://travis-ci.org/joemcmahon/test-xml-simple.svg?branch=master)](https://travis-ci.org/joemcmahon/test-xml-simple)
[![Coverage Status](https://coveralls.io/repos/joemcmahon/test-xml-simple/badge.png?branch=master)](https://coveralls.io/r/joemcmahon/test-xml-simple?branch=master)This module provides a test class which makes it easy to do basic
Test::More style tests on XML input.```perl
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::LibXMLYou 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.