wiki.techinc.nl/tests/phpunit
2023-04-17 20:33:08 +00:00
..
data Merge "ResourceLoader: Descriptive error for Less imports from codex-design-tokens" 2023-04-11 02:04:01 +00:00
docs
includes Merge "Fix infinite loop for self-redirects with variants conversion" 2023-04-17 20:33:08 +00:00
integration/includes Merge "objectcache,resourceloader,rdbms,jobqueue: Widen @covers annotations" 2023-04-12 10:12:44 +00:00
maintenance Just another 80 or so PHPStorm inspection fixes (#4) 2023-03-25 00:39:06 +00:00
mocks Fix some typos 2023-03-21 15:58:09 +01:00
structure ResourceLoader: Add structure test for ResourceLoader::respond() 2023-04-10 18:18:54 -07:00
suites ParserTestRunner: Additional refactoring and cleanup 2023-04-11 16:47:40 -05:00
tests tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
unit rdbms: Make buildComparison() reject non-numeric indices 2023-04-14 16:24:22 +02:00
bootstrap.maintenance.php
bootstrap.php phpunit: Check if composer dependencies are up-to-date 2023-03-09 18:26:06 -05:00
HamcrestPHPUnitIntegration.php
LessFileCompilationTest.php
MediaWikiCliOptions.php
MediaWikiCoversValidator.php
MediaWikiGroupValidator.php
MediaWikiIntegrationTestCase.php profiler: Add ProfilingContext class 2023-03-23 00:08:49 +00:00
MediaWikiLangTestCase.php
MediaWikiLoggerPHPUnitExtension.php
MediaWikiPHPUnitResultPrinter.php
MediaWikiTestCaseTrait.php
MediaWikiUnitTestCase.php
MWTestDox.php
phpunit.php phpunit: Check if composer dependencies are up-to-date 2023-03-09 18:26:06 -05:00
README.md
ResourceLoaderTestCase.php ResourceLoader: Add structure test for ResourceLoader::respond() 2023-04-10 18:18:54 -07:00
suite.xml phpunit: Lower report limit to 10 slowest tests 2023-03-09 14:08:38 +01:00

MediaWiki PHPUnit tests

WARNING: Integration tests may be destructive and alter or remove parts of your local database. We try to use temporary tables where possible, but you must never run tests on a production server or on a wiki where you don't want to lose data.

Running tests

If you haven't already, run composer update (specifically without --no-dev) in the MediaWiki core directory. This will install PHPUnit.

To read about how to run specific tests, refer to:

https://www.mediawiki.org/wiki/Manual:PHP_unit_testing/Running_the_tests

Writing tests

A guide to writing PHPUnit tests for MediaWiki can be found at:

https://www.mediawiki.org/wiki/Manual:PHP_unit_testing