summaryrefslogtreecommitdiff
path: root/t/README
blob: b3b9f420837fdd2ee4c5b527ff2b95ba35183bd1 (plain)
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
44
45
46
47
48
49
50
51
52
=head1 NAME

F<t> - MediaWiki test tree

=head1 DESCRIPTION

This is the MediaWiki test tree (well, one of them), tests in this
directory are self-contained programs that produce TAP output via the
F<Test.php> module (/trunk/phase3/t/Test.php) (see
http://search.cpan.org/~petdance/TAP-1.00/TAP.pm#THE_TAP_FORMAT for
information on the TAP format).

=head1 Running the tests

To run all tests, you can run

    make test

Since the tests are self-contained PHP programs you can run them
(Xml.t here) as:

    php t/inc/Xml.t

That'll give you the raw TAP output, but what you probably want is to
use a TAP formatter such as L<prove(1)>:

    prove t/inc/Xml.t # add -v for the verbose version

or to run all the tests:

   prove -r t

=head1 TODO

=over

=item *

Rewrite the rest of the F<tests/> stuff to use L<Test.php> and move it
here

=item *

Make the parsertests use TAP?

=item *

Write unit tests for the entire codebase:)

=back

=cut