< Manual:PHP unit testing
MediaWiki Flower
MediaWiki Flower
« Unit testing
PHPUnit testing

Contents

  • Running the tests
    • PostgreSQL
    • Oracle
  • Generate code coverage
  • Writing testable PHP code
  • Writing tests
    • ...for extensions
  • Continuous integration
  • Understanding build failures
  • Appendix
    (how to help, resources..)

Tools

Since MediaWiki 1.34 , we no longer support using Oracle and Microsoft SQL Server . We strongly advise to no longer use these.

Status

Works with r101976 (1.19a) but is painfully slow because it recreates the schema for each test. A workaround for this issue is to run a short Database test once (so it creates the testing schema) and then use --reuse-db switch that will only clear the schema without recreating it.

Tested against Oracle 11g SE.

Tips for developers

No-cost eval/development version of Oracle 11g "Express" available for Windows x86 and Linux x86_64:

Installation instructions can be found at Manual:Oracle.

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.