File: README.md

package info (click to toggle)
libtest-xml-simple-perl 1.05-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 128 kB
  • ctags: 15
  • sloc: perl: 158; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 1,261 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#Test::XML::Simple

[![Build Status](https://travis-ci.org/joemcmahon/test-xml-simple.svg?branch=master)](https://travis-ci.org/joemcmahon/test-xml-simple)

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