* Reverting encoding errors.
[lhc/web/wiklou.git] / t / README
1 =head1 NAME
2
3 F<t> - MediaWiki test tree
4
5 =head1 DESCRIPTION
6
7 This is the MediaWiki test tree (well, one of them), tests in this
8 directory are self-contained programs that produce TAP output via the
9 F<Test.php> module (/trunk/phase3/t/Test.php) (see
10 http://search.cpan.org/~petdance/TAP-1.00/TAP.pm#THE_TAP_FORMAT for
11 information on the TAP format).
12
13 =head1 Running the tests
14
15 To run all tests, you can run
16
17 make test
18
19 Since the tests are self-contained PHP programs you can run them
20 (Xml.t here) as:
21
22 php t/inc/Xml.t
23
24 That'll give you the raw TAP output, but what you probably want is to
25 use a TAP formatter such as L<prove(1)>:
26
27 prove t/inc/Xml.t # add -v for the verbose version
28
29 or to run all the tests:
30
31 prove -r t
32
33 =head1 TODO
34
35 =over
36
37 =item *
38
39 Rewrite the rest of the F<tests/> stuff to use L<Test.php> and move it
40 here
41
42 =item *
43
44 Make the parsertests use TAP?
45
46 =item *
47
48 Write unit tests for the entire codebase:)
49
50 =back
51
52 =cut