Re: [Wikitech-l] Autodiscovery of extension unittests

2016-08-05 Thread Sam Smith
<3 <3 <3

Thank you for this Kunal and thanks for Florian for merging it!

-Sam

On Thu, Aug 4, 2016 at 9:16 PM, Greg Grossmeier  wrote:

> (Adding in qa@)
>
> 
> > Hi,
> >
> > One thing that's always annoyed me about writing tests for an extension
> > is that for the first test, you need to bootstrap it by adding a
> > UnitTestsList hook, and copying the code for it from some other
> extension.
> >
> > Now that we have a proper extension registry, I wrote
> >  (merged by Florian!), which
> > will automatically register any tests in an extension's "tests/phpunit/"
> > directory. If you already have a UnitTestsList hook, the tests won't be
> > duplicated or anything, but it is now safe to remove the hook.
> >
> >  tracks updating extensions
> > to do so by moving their tests into the standardized path and removing
> > the hook.
> >
> > Note: this requires that the extension has already been converted to use
> > extension.json.
>
> Great work, Kunal!
>
> --
> | Greg GrossmeierGPG: B2FA 27B1 F7EB D327 6B8E |
> | identi.ca: @gregA18D 1138 8E47 FAC8 1C7D |
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Autodiscovery of extension unittests

2016-08-04 Thread Greg Grossmeier
(Adding in qa@)


> Hi,
> 
> One thing that's always annoyed me about writing tests for an extension
> is that for the first test, you need to bootstrap it by adding a
> UnitTestsList hook, and copying the code for it from some other extension.
> 
> Now that we have a proper extension registry, I wrote
>  (merged by Florian!), which
> will automatically register any tests in an extension's "tests/phpunit/"
> directory. If you already have a UnitTestsList hook, the tests won't be
> duplicated or anything, but it is now safe to remove the hook.
> 
>  tracks updating extensions
> to do so by moving their tests into the standardized path and removing
> the hook.
> 
> Note: this requires that the extension has already been converted to use
> extension.json.

Great work, Kunal!

-- 
| Greg GrossmeierGPG: B2FA 27B1 F7EB D327 6B8E |
| identi.ca: @gregA18D 1138 8E47 FAC8 1C7D |

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

[Wikitech-l] Autodiscovery of extension unittests

2016-08-04 Thread Legoktm
Hi,

One thing that's always annoyed me about writing tests for an extension
is that for the first test, you need to bootstrap it by adding a
UnitTestsList hook, and copying the code for it from some other extension.

Now that we have a proper extension registry, I wrote
 (merged by Florian!), which
will automatically register any tests in an extension's "tests/phpunit/"
directory. If you already have a UnitTestsList hook, the tests won't be
duplicated or anything, but it is now safe to remove the hook.

 tracks updating extensions
to do so by moving their tests into the standardized path and removing
the hook.

Note: this requires that the extension has already been converted to use
extension.json.

-- Legoktm

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