Skip to content

Commit

Permalink
Document input redirection fix
Browse files Browse the repository at this point in the history
I ran into the same problem as spatie#54, and adding `< /dev/tty` worked for me.

I had to search through closed issues to find it, though. I think it's worth adding to the readme.
  • Loading branch information
iandunn authored Jun 12, 2020
1 parent 57ee6df commit ac5712e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,13 @@ Want to pass some arguments to PHPUnit? No problem, just tack them on:
phpunit-watcher watch --filter=it_can_run_a_single_test
```

#### A note for Windows users
Currently, TTY is not being supported, so any interaction has been disabled. While watching for changes works,
#### Notes on interactive commands

When running `phpunit-watcher` from a Composer script, you may need to [redirect input](https://github.com/spatie/phpunit-watcher/issues/54) in order for the interactive commands to work:

`"test:watch": "phpunit-watcher watch < /dev/tty"`

On Windows, Currently, TTY is not being supported, so any interaction has been disabled. While watching for changes works,
any arguments for PHPUnit have to be provided when initially calling `phpunit-watcher`.

## Customization
Expand Down

0 comments on commit ac5712e

Please sign in to comment.