Comments (11)
This flag doesn't work for me
from phpunit-watcher.
I do not even use composer for running the script. What was finally working was adding a config file setting:
$ cat >> .phpunit-watcher.yml
phpunit:
timeout: 180
^D
interestingly, I could not find a way to set this option via any other means, like phpunit.xml for example.
I realy hate this ecosystem. So many packages, so unbelievable bad quality, so much crappy software,
from phpunit-watcher.
@beyondcompute I got around this by wrapping phpunit-watcher with nodemon.
nodemon --watch ./app --watch ./tests/ -e php --exec composer watch
Where composer watch
is defined in my composer.json
scripts as
"watch": [
"phpunit-watcher watch"
]
and nodemon
is set to watch for changes in php
files existing in my app
and tests
directories
from phpunit-watcher.
Thank you, @mykeels! π
from phpunit-watcher.
Hey, @beyondcompute ... I found that setting the --timeout
flag to 0 makes it run forever, so you may not have to wrap it with nodemon
after all.
./vendor/bin/phpunit-watcher watch --timeout 0
from phpunit-watcher.
Thanks again @mykeels! ThatΚΌs really good advice!
from phpunit-watcher.
Closing this, as this is solved for most people.
from phpunit-watcher.
This worked for me in composer.json
, for version 1.11.1
:
"config" : {
"process-timeout": 0
},
I tried setting the env var for just the test:watch
task...
"scripts" : {
"test" : "phpunit",
"test:watch" : "COMPOSER_PROCESS_TIMEOUT=0 vendor/bin/phpunit-watcher watch"
}
...but couldn't get that working π€·ββ
from phpunit-watcher.
nothing of the above works :(
-
COMPOSER_PROCESS_TIMEOUT=0
has no effect. -
./vendor/bin/phpunit-watcher watch --timeout 0
does not even exists:
....
PHPUnit 9.5.20 #StandWithUkraine
Unknown option "--timeout"
from phpunit-watcher.
Did you try config.process-timeout
in composer.json
? That's still working for me.
from phpunit-watcher.
The new advice from the README
file also worked for me:
"test:watch": [
"Composer\\Config::disableProcessTimeout",
"phpunit-watcher watch"
],
from phpunit-watcher.
Related Issues (20)
- Shortcuts for interactive filters would be convenient HOT 1
- What is the limit on how many files it can watch without freezing? HOT 1
- PHP 8 HOT 4
- Watching is extremely slow with Xdebug enabled, and it can't be disabled HOT 3
- PHPUnit arguments from config are wiped out when changing group HOT 8
- combine arguments with default arguments HOT 2
- Fatal error: Cannot redeclare composerRequireccc446ee119412ee86368ef685c2dae8 HOT 1
- Feature Request: 'Press f to run failed tests' HOT 1
- latest version 1.23.2 shows 1.12.1 HOT 1
- PHP 8.1 compatibility HOT 1
- [BUG] Array to string conversion in WatcherCommand on line 121 HOT 1
- Laravel 9 & PHP 8.1 Support HOT 4
- Cannot redeclare composerRequired346c5441e2a9b0583ced00554218f59() HOT 2
- Can't install in a Laravel 9 project HOT 2
- Timeout - PHP 8.1 and Composer 2.1.9 HOT 2
- Installation failed Laravel 9 PHP 8.1 HOT 7
- Installation failed Symfony 6.2.4 PHP 8.2.1 HOT 5
- Path coverage is ignored after first act HOT 3
- Add suport for PHP 8.2 HOT 7
- Update package dep for symfony console HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpunit-watcher.