wiki.techinc.nl/t
Alexandre Emsenhuber a41b7035dc Some tweaks to the test tree:
* Moved Test.php to t/Test.php
* Updated t/inc/Languages.t so that it doesn't throw a fatal error because $wgMemc isn't set when creating the Laguage object
* Added  t/inc/Parser.t, a version of the parser tests with TAP output. I modified some methods of the ParserTests class so that i can extend it in t/inc/Parser.t to modify the format of the output.
* Killed ending ?> tags in PHP tests
2008-03-28 16:11:36 +00:00
..
inc Some tweaks to the test tree: 2008-03-28 16:11:36 +00:00
maint don't slurp the whole file, we only need to test line 1, this speeds things up immensely 2007-07-20 00:05:48 +00:00
00-test.t vim modeline 2007-05-13 10:46:30 +00:00
README Some tweaks to the test tree: 2008-03-28 16:11:36 +00:00
Test.php Some tweaks to the test tree: 2008-03-28 16:11:36 +00:00

=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