Skip to content
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 a test for JSON schema to check that all mutators are indeed validated. #794

Closed
maks-rafalko opened this issue Sep 20, 2019 · 1 comment

Comments

@maks-rafalko
Copy link
Member

I wonder if we should have a test for this list, to check that all mutators are indeed present.

Originally posted by @sanmai in #782 (comment)

I just realized that we will definitely forget updating json schema after adding new mutators, which I've already done twice :D (#787, #784). AutoReview test is a must have here

@maks-rafalko
Copy link
Member Author

It exists and works as expected

foreach ($genericMutatorNamesList as $mutator) {
yield '[mutators][generic][' . $mutator . '] enabled' => [
<<<JSON
{
"source": {
"directories": ["src"]
},
"mutators": {
"$mutator": true
}
}
JSON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants