1AnyEvent::XMPP::TestCliUesnetr(3C)ontributed Perl DocumeAnntyaEtvieonnt::XMPP::TestClient(3)
2
3
4

NAME

6       AnyEvent::XMPP::TestClient - XMPP Test Client for tests
7

SYNOPSIS

DESCRIPTION

10       This module is a helper module to ease the task of testing.  If you
11       want to run the developer test suite you have to set the environment
12       variable "NET_XMPP2_TEST" to something like this:
13
14          NET_XMPP2_TEST="test_me@your_xmpp_server.tld:secret_password"
15
16       Most tests will try to connect two accounts, so please take a server
17       that allows two connections from the same IP.
18
19       If you also want to run the MUC tests (see AnyEvent::XMPP::Ext::MUC)
20       you also need to setup the environment variable "NET_XMPP2_TEST_MUC" to
21       contain the domain of a MUC service:
22
23          NET_XMPP2_TEST_MUC="conference.your_xmpp_server.tld"
24
25       If you see some tests fail and want to know more about the protocol
26       flow you can enable the protocol debugging output by setting
27       "NET_XMPP2_TEST_DEBUG" to '1':
28
29          NET_XMPP2_TEST_DEBUG=1
30
31       (NOTE: You will only see the output of this by running a single test)
32
33       If one of the tests takes longer than the preconfigured 20 seconds
34       default timeout in your setup you can set "NET_XMPP2_TEST_TIMEOUT":
35
36          NET_XMPP2_TEST_TIMEOUT=60  # for a 1 minute timeout
37

CLEANING UP

39       If the tests went wrong somewhere or you interrupted the tests you
40       might want to delete the accounts from the server manually, then run:
41
42          perl t/z_*_unregister.t
43

MANUAL TESTING

45       If you just want to run a single test yourself, just execute the
46       register test before doing so:
47
48          perl t/z_00_register.t
49
50       And then you could eg. run:
51
52          perl t/z_03_iq_auth.t
53

METHODS

55   new (%args)
56       Following arguments can be passed in %args:
57

AUTHOR

59       Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>"
60
62       Copyright 2007, 2008 Robin Redeker, all rights reserved.
63
64       This program is free software; you can redistribute it and/or modify it
65       under the same terms as Perl itself.
66
67
68
69perl v5.30.0                      2019-07-26     AnyEvent::XMPP::TestClient(3)
Impressum