Giter Club home page Giter Club logo

Comments (11)

joaoeduardo avatar joaoeduardo commented on June 6, 2024 3

This flag doesn't work for me

from phpunit-watcher.

crux avatar crux commented on June 6, 2024 3

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.

mykeels avatar mykeels commented on June 6, 2024 1

@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.

beyondcompute avatar beyondcompute commented on June 6, 2024

Thank you, @mykeels! πŸ™Œ

from phpunit-watcher.

mykeels avatar mykeels commented on June 6, 2024

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.

beyondcompute avatar beyondcompute commented on June 6, 2024

Thanks again @mykeels! ThatΚΌs really good advice!

from phpunit-watcher.

freekmurze avatar freekmurze commented on June 6, 2024

Closing this, as this is solved for most people.

from phpunit-watcher.

iandunn avatar iandunn commented on June 6, 2024

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.

crux avatar crux commented on June 6, 2024

nothing of the above works :(

  1. COMPOSER_PROCESS_TIMEOUT=0
    has no effect.

  2. ./vendor/bin/phpunit-watcher watch --timeout 0
    does not even exists:

....
PHPUnit 9.5.20 #StandWithUkraine
Unknown option "--timeout"

from phpunit-watcher.

iandunn avatar iandunn commented on June 6, 2024

Did you try config.process-timeout in composer.json? That's still working for me.

from phpunit-watcher.

iandunn avatar iandunn commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.