Mark A. Hershberger wrote:
> Dan Nessett <dness...@yahoo.com> writes:
> 
>> I don't think walking through all the extensions looking for test
>> subdirectories and then running all tests therein is a good idea. First,
>> in a large installation with many extensions, this takes time and delays
>> the test execution.
> 
> Globbing for extensions/*/tests/TestSettings.php doesn't take long at
> all.
> 
> However I am looking at a way to test extensions independently of
> installation.
> 
> This means I can't depend on hooks or global variables, so I need
> another way to find out if an extension has tests available.

You could have a global variable and also set the convention of storing
them in extensions/*/tests/TestSettings.php

Anyway, I don't think you could do that. If the extension isn't
installed, you won't pass whatever extension behavior it is testing,
would it?


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

Reply via email to