-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mutation testing (code quality) #265
Comments
Any leads how this can be already done without |
That is what step 1 in outline is about, to explore without |
Finally, I got my first infection output:
To make this work, I had to:
|
Thanks @ewallah, interesting. Re point 5, that might be because of concurrency, try with This made me think, to what extent multithreaded run of phpunit could be of use for Moodle? Implementation of it exists https://github.com/paratestphp/paratest |
I was able to run infection tests with GitHub Actions:
To run these tests I added 2 files:
P.S. The broken phpunit tables were related to a defective plugin. |
This issue is about exploring possibility of adding Mutation testing support, which reports tests effectiveness. This information can be used to improve both code and tests quality.
Short summary of principle underneath mutation testing (from Stryker):
It supports composer installation, this makes it simple to add as dependency, it also depends on
pcov|xdebug
(or alternatively needs coverage.xml from phpunit run, but using debugger probably easier).The brief outline of the task:
moodle-plugin-ci
installed for CLI run.-
infection
run requires json configuration file that needs to be generated for the plugin if it does not exist.- support of CLI options
Infection
command.The text was updated successfully, but these errors were encountered: