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

Only run tests for changed files ? #64

Closed
stijink opened this issue Apr 24, 2018 · 3 comments
Closed

Only run tests for changed files ? #64

stijink opened this issue Apr 24, 2018 · 3 comments

Comments

@stijink
Copy link

stijink commented Apr 24, 2018

Hi,

i just found this package. First of all thank you for that. Looks promising.

I already found that there is a pull request for not running the tests on initial startup, which is great.

But what i found out is, that phpunit-watcher re-runs all of my tests whenever any test changes. Having lots of tests this is rather time-consuming.

I'm aware that i could set a filter. But during development various tests may change. Is there any way to only re-run the tests for the files that actually changed ?

@freekmurze
Copy link
Member

That isn't supported. If this behaviour can be easily added to the package, I'd accept a PR for this.

@stijink
Copy link
Author

stijink commented Apr 25, 2018

@freekmurze Thank you for the reply. Maybe i'll look into it.

@amacrobert
Copy link

amacrobert commented Jul 3, 2019

I was just about to open a feature request for this. It's the default behavior of this PHPUnit watcher. I do find spatie/phpunit-watcher to be more responsive and fully featured though, so it would be great if automatically running only the corresponding tests were a feature here too.

I'll try to make some time to implement it myself and open a PR.

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

No branches or pull requests

3 participants