NAME

provedaia - run DAIA test suites

VERSION

version 0.43

SYNOPSIS

provedaia [<OPTIONS>] [<FILES>]

Options:
  -?|-h|--help          show this help
  --version             show version
  --server URL-or-file  set base URL of DAIA server or load PSGI script
  --end                 skip everything until __END__ in input
  --combined            use files as both, server and test suite

DESCRIPTION

This script can be used to test DAIA servers. It is based on the package Plack::App::DAIA::Test but you do not need to write full test scripts. Instead you just provide server, query identifier(s), and an optional response. The output of this script conforms to the Test Anything Protocol (TAP).

DAIA responses can be checked with Test::JSON::Entails. For instance you can check that the response contains a document with the ID you queried for:

{ "document" : [
  { "id" : "$id" }
] }

Have a look at the bottom of the daia-ubbielefeld.pl example script for another example. As Plack::App::DAIA::Test is work in progress, so is this script.

AUTHOR

Jakob Voss

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Jakob Voss.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.