Due to the tight development deadline for the Computer-Aided Tagging feature, much of the code in the MachineVision extension is not yet covered by tests. Now that the code is nearly complete and we are waiting on tech reviews, this task is to fill out test coverage prior to the official feature launch.
Classes needing test coverage:
(note: MediaWiki\Extension\MachineVision\ prefix omitted from classpaths)
- LabelSuggestion ( https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/MachineVision/+/547325 )
- Util ( https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MachineVision/+/547336 )
- ConfirmTagsDialog (patch)
- ImageWithSuggestionWidget (patch)
- SuggestedTagsCardstack (patch)
- SuggestedTagsPage (patch, incomplete)
- SuggestionWidget (patch)
- UserMessage (patch)
My intent is not that one person picks this up in its entirety, but that anyone can add tests for an individual class or related group of classes as time becomes available. Please sign up next to one or more classes as you intend to work on adding tests for them, as I've done above for TitleFilter.