-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
5.1
-
None
-
MOODLE_501_STABLE
There are some unit tests that appear to be designed to verify that plugins implement some APIs correctly, for example the Privacy API, and SVG icons.
It would be really useful if this sort of test had a tag so when we are writing or upgrading a plugin we can easily run all of these unit tests, when we run the plugins own tests, to help verify that everything is working correctly.
Some of the tests that I have seen that do this sort of thing are:
- core_privacy\privacy\provider_test::test_null_provider
- core_privacy\privacy\provider_test::test_all_providers_compliant
- core\output\icon_system_fontawesome_test::test_svg_fallback
So for example being able to run a unit test commend like: vendor/bin/phpunit --group api-verification would make it easy to use them all.
- has been marked as being related by
-
MDL-85666 PHPUnit install should detect missing strings or bad capability names
-
- Waiting for peer review
-