wiki.techinc.nl/tests/phpunit/includes/api/query
Derick Alangi ff0bd2c434 Widen @covers annotations in tests ApiQueryInfoTest
> We lose useful coverage and spend valuable time keeping these tags
> accurate through refactors (or worse, forget to do so).
>
> I've audited each test to confirm it is a general test of the
> subject class, where adding any called methods would be an accepted
> change, thus widening it is merely a no-op that clarifies intent
> and reduces maintenance. I am not disabling the "only track coverage
> of specified subject" benefits, nor am I claiming coverage in
> in classes outside the subject under test.
>
> Tracking tiny details per-method wastes time in keeping references
> in sync during refactors, time to realize (and fix) when people
> inevitably don't keep them in sync, time lost in finding uncovered
> code to write tests for only to realize it was already covered but
> not yet claimed, etc.

@note: Motivated by patches like these from Krinkle from time to time,
see: I133c7b707aab7ceb4f2ecd3be38bd4bd1b194143 for example.

Change-Id: Icff4b5a2e9ce2108c1653052624c76004048cc31
2023-09-03 00:24:40 +00:00
..
ApiQueryAllPagesTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
ApiQueryAllRevisionsTest.php tests/api: Add TestUser::getAuthority and use it 2022-08-06 23:15:27 +02:00
ApiQueryBasicTest.php tests: api: Use NS_ constants instead of hard coded values 2023-07-29 11:02:26 +02:00
ApiQueryBlockInfoTraitTest.php phpunit: Avoid TestUser in non-database tests 2023-07-29 14:26:50 +00:00
ApiQueryBlocksTest.php tests: api: Use NS_ constants instead of hard coded values 2023-07-29 11:02:26 +02:00
ApiQueryContinue2Test.php
ApiQueryContinueTest.php
ApiQueryContinueTestBase.php Use native array_column() in tests instead of loops 2022-08-16 15:41:14 +02:00
ApiQueryDisabledTest.php
ApiQueryImageInfoTest.php Reorg: Move MWTimestamp to MediaWiki\Utils 2023-08-19 05:53:40 +02:00
ApiQueryInfoTest.php Widen @covers annotations in tests ApiQueryInfoTest 2023-09-03 00:24:40 +00:00
ApiQueryLanguageinfoTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
ApiQueryPrefixSearchTest.php tests: Make some PHPUnit data providers static 2023-05-20 01:05:27 +02:00
ApiQueryRecentChangesIntegrationTest.php Merge "tests: api: Use NS_ constants instead of hard coded values" 2023-07-30 14:21:22 +00:00
ApiQueryRevisionsTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
ApiQuerySearchTest.php Avoid DB access in more non-Database tests 2023-08-06 16:07:27 +00:00
ApiQuerySiteinfoTest.php Deprecate MediaWikiIntegrationTestCase::$users 2023-07-25 12:12:43 +00:00
ApiQueryTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
ApiQueryTestBase.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
ApiQueryTokensTest.php Avoid DB access in more non-Database tests 2023-08-06 16:07:27 +00:00
ApiQueryUserContribsTest.php tests: api: Replace some static function with services 2023-07-29 11:58:54 +02:00
ApiQueryUserInfoTest.php Reorg: Move MWTimestamp to MediaWiki\Utils 2023-08-19 05:53:40 +02:00
ApiQueryWatchlistIntegrationTest.php Merge "tests: api: Use NS_ constants instead of hard coded values" 2023-07-30 14:21:22 +00:00
ApiQueryWatchlistRawIntegrationTest.php tests: api: Use NS_ constants instead of hard coded values 2023-07-29 11:02:26 +02:00