Brion Vibber wrote: > On Sat, Jul 9, 2011 at 2:17 PM, Mark A. Hershberger wrote: >> * How can they write parser tests and unit tests to try out their >> code? > > 'Look at what other extensions do' is the best answer until somebody writes > up some details, which would be super nice. :D > > 'Cite' is an example that has some parser tests; basically you need to > provide a .txt file with the test cases in the same format as the core ones, > and have a ... hook? Or a config var? that adds your file to the list of > cases to run.
Add to $wgParserTestFiles in the extension entry point: $wgParserTestFiles[] = dirname( __FILE__ ) . "/fileWithMyParserTests.txt"; >> * How can they make sure that those tests are run on the test server? >> (I think this actually requires some work on the test server, but…) >> > > Whoever runs the test setup would need to add the extensions in.... no idea > who/how at the moment. :) LocalSettings.php Extensions installed in the wiki (ie. required by LocalSettings) have their tests run. If you want some extension added for tests I recommend bugging hashar. _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
