Follow-up r57470: Add show/hide links for users that can view deleted revisions but...
[mediawiki.git] / t / README
blobb3b9f420837fdd2ee4c5b527ff2b95ba35183bd1
1 =head1 NAME
3 F<t> - MediaWiki test tree
5 =head1 DESCRIPTION
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).
13 =head1 Running the tests
15 To run all tests, you can run
17     make test
19 Since the tests are self-contained PHP programs you can run them
20 (Xml.t here) as:
22     php t/inc/Xml.t
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)>:
27     prove t/inc/Xml.t # add -v for the verbose version
29 or to run all the tests:
31    prove -r t
33 =head1 TODO
35 =over
37 =item *
39 Rewrite the rest of the F<tests/> stuff to use L<Test.php> and move it
40 here
42 =item *
44 Make the parsertests use TAP?
46 =item *
48 Write unit tests for the entire codebase:)
50 =back
52 =cut