Le 30/08/12 10:11, Oren Bochman a écrit :
- is successfully runnig the test a requirement to successfully score on
gerrit? (i.e. how is gerrit integrated)
When a change is submitted in Gerrit a notification is sent to Jenkins. If a job is setup for the repository, it will be triggered. For extension tests the process is: - copy a snapshot of the current master version of MediaWiki - clone latest master version of the extension - apply the change - load the extension entry point (Foobar/Foobar.php by convention) - Run PHPUnit against the 'extensions' directory - Test results are aggregate and publish under Jenkins - If all tests are successful, Jenkins mark the change in Gerrit as Verified +2. Else it marks it as Verified -2
- does the extension need to include php unit?
The PHPUnit software is installed on the continuous integration server. The only thing you need in the extension is to have your tests in a PHP file ending with 'Test.php'.
The TitleBlacklist is an example.
cheers,