Re: [Wikitech-l] writing phpunit tests for extensions

2011-04-04 Thread Platonides
Michael Dale wrote:
 Eventually it would be ideal to be able to 'just test your extension'
 from the core bootstraper (ie dynamically generate our suite.xml and
 namespace the registration of extension tests) ... but for now at least
 not having to wait for all the core tests as you write you extension
 tests and some basic documentation on how to do seems like a step forward.
 
 --michael

If your tests are in just one file, you can simply pass it as a
parameter to tests/phpunit/phpunit.php



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] writing phpunit tests for extensions

2011-04-04 Thread Michael Dale
On 04/04/2011 02:20 PM, Platonides wrote:
 Michael Dale wrote:
 Eventually it would be ideal to be able to 'just test your extension'
 from the core bootstraper (ie dynamically generate our suite.xml and
 namespace the registration of extension tests) ... but for now at least
 not having to wait for all the core tests as you write you extension
 tests and some basic documentation on how to do seems like a step forward.

 --michael
 If your tests are in just one file, you can simply pass it as a
 parameter to tests/phpunit/phpunit.php

that's cool. We should add that info to the phpunit.php --help output,
and to the unit testing wiki page.

--michael

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l