mediawiki-extensions-AbuseF.../tests/phpunit
Timo Tijhof 56c0f6313e tests: Widen @covers tags in SpecsTest
> We lose useful coverage and waste valuable time on keeping tags
> accurate through refactors (or worse, forget to do so).
>
> Tracking tiny per-method details wastes time in realizing (and
> fixing) when people inevitably don't keep them in sync, and time
> lost in finding uncovered code to write tests to realize it was
> already covered but "not yet claimed".
>
> Given all used methods are de-facto and liberally claimed, and
> that we keep the coverage limited to the subject class, this
> maintains the spirit and intent. PHPUnit offers a more precise
> tool when you need it (i.e. when testing legacy monster classes),
> but for well-written code, the class-wide tag suffices.

Ref https://gerrit.wikimedia.org/r/q/owner:Krinkle+is:merged+message:Widen

Change-Id: I5a5420df1389338644a099ebfd072063653e6849
2024-04-15 16:36:36 +01:00
..
integration Merge "FilterLookup: Stop using DBAccessObjectUtils::getDBOptions()" 2024-03-25 18:20:52 +00:00
unit tests: Widen @covers tags in SpecsTest 2024-04-15 16:36:36 +01:00
AbuseFilterConsequencesTest.php tests: Remove redundant wgMainCacheType=hash 2024-03-29 15:37:58 -07:00
AbuseFilterCreateAccountTestTrait.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterFilterUserTest.php Don't attempt to steal or create the FilterUser in CheckUserHandler 2024-01-31 19:32:52 +00:00
AbuseFilterRowsAndFiltersTestTrait.php Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00
AbuseFilterUploadTestTrait.php Use namespaced classes 2023-12-10 23:03:12 +01:00
ConsequenceGetMessageTestTrait.php Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
DegroupTest.php Avoid TestUser in non-database tests 2023-08-06 22:18:49 +00:00
LazyVariableComputerDBTest.php Remove $this->tablesUsed from PHPUnit tests 2024-01-14 04:45:29 -08:00
RCVariableGeneratorTest.php Add user_type variable 2024-03-07 10:38:25 +00:00
SchemaChangesHandlerTest.php tests: Avoid DB access in non-Database tests 2023-08-06 22:19:03 +00:00