infection / tests-checker

[BOT] Requires writing the tests in Pull Requests.
https://probot.github.io/apps/tests-checker/
ISC License
38 stars 7 forks source link

Only check `src` directory for changes #2

Open nesl247 opened 5 years ago

nesl247 commented 5 years ago

It would be great if we could limit the scope in which it looks for files. So rather than looking at all files that end in .php for example, it would only look for src/**/*.php. This way configuration changes in /phinx.php, config/parameters.php, etc. type of files would not trigger the suggestion.

maks-rafalko commented 5 years ago

A simple solution would be to introduce sourceDir (similar to testDir from the config https://github.com/infection/tests-checker/blob/b7713f4a92258d123c9a5a7fc5e1f9e2af290033/src/index.ts#L9)

I don't think I'm able to do it in the near future, so PR is very welcome!