Thread:Project:Support desk/Run parser tests suites

Hi,

I am using MediaWiki source code to develop my website. I wanted to run the test suites as I think continuous integration rocks ! So I started with the php tests/parserTests.php command line to run the parser tests. However this conflicts with my database. It literally suppressed my user table.

I then run the MediaWiki initial script again to end up with a new database I would use only for testing purposes. But when I run the php tests/parserTests.php command line, I now end up with the following error message: This is MediaWiki version 1.19.1.

PHP Warning: Invalid argument supplied for foreach in path_to_MediaWiki/includes/SpecialPageFactory.php on line 548

Warning: Invalid argument supplied for foreach in path_to_MediaWiki/includes/SpecialPageFactory.php on line 548 PHP Fatal error: Unsupported operand types in path_to_MediaWiki/languages/Language.php on line 353

Fatal error: Unsupported operand types in path_to_MediaWiki/languages/Language.php on line 353

Would someone knowledgeable about those test suites could write a Setting a testing database part so everyone can benefit from those already written tests ? It may already exists but I did not find it (yet).

Thank you very much in advance for your time and help.