We started writing PHPUnit tests for the Cite extension (some being integration test with MediaWiki, some being pure unit tests). Before, the extension was exclusively tested with parser tests.
- Parser tests: https://phabricator.wikimedia.org/diffusion/ECIT/browse/master/tests/parser/
- PHPUnit test coverage: https://doc.wikimedia.org/cover-extensions/Cite/
At the end of this project, we would like to review the parser tests and:
- Delete duplicates that actually test the exact same code paths.
- Delete (slow) parser tests for code that is sufficiently covered by PHPUnit tests.