Comments (8)
I’m guessing that ~/.composer/bin
is in your PATH but not vendor/bin
. I wouldn’t call this a known issue per say but the docs could be more clear on this. Dredd could also be smarter to look in the current working directory’s vendor/bin
directory. However, since this is the first issue I’ve seen with this I think updating the docs is probably enough.
from dredd-hooks-php.
from dredd-hooks-php.
Can you verify that fixes it for you and then I will update the docs?
from dredd-hooks-php.
I'm wondering if I had to add the local vendor/bin
of my project to PATH and if yes, wouldn't I have to those vendor/bin
of every single project to PATH?
I'm normally working on a Windows Machine, on which I only have a single PATH set for composer ... Not sure how it would work on macOS or other Unix-style OS
from dredd-hooks-php.
I'm talking about a relative path so it will work in your current working directory is where your vendor folder is. Sorry I don't have windows experience so I can't speak to that but linux / os x you would do something like
export PATH="$PATH:vendor/bin"
from dredd-hooks-php.
Yeah that means, I would have to run this on every single project I have ... That would be a solution, but only for Unix-Styles ...
In Windows there would be something like setx path "%path%;c:\yourPath"
... or as I did, just use vendor/bin/dredd-hooks-php
instead of just php
...
I think a first good solution would be to add some additional note to the README ...
If you want, I can try to collect the information that I would expect, and you can then check, if you want to add them.
from dredd-hooks-php.
I suggest adding a dredd config file to your project. This way, you do not have to specify the command line arguments every time. Another advantage of this would be that for other team members, no extra setup is required and they can just run dredd
and do not have to worry about their path, cli arguments...
from dredd-hooks-php.
I guess we can close this issue. (not relevant for me anymore). We can always re-open if someone still has questions
from dredd-hooks-php.
Related Issues (18)
- Rollback test data HOT 16
- Getting error when running dredd HOT 4
- [Feature request] Support host and port parameters HOT 3
- [Feature request] Support force parameter HOT 6
- error: Hooks handler command not found: dredd-hooks-php HOT 12
- Dredd keeps failing to connect to hooks handler HOT 38
- Add GitHub topics HOT 1
- Error connecting to the hook handler. Is the handler running? HOT 6
- Dredd hook not trigger when defining multiple requests within one method HOT 11
- Laravel example: Transactions not working HOT 1
- Changing the database provider when running tests HOT 1
- Release HOT 1
- Add .gitattributes with "export-ignore" options HOT 4
- testing different params for testing similar response HOT 4
- PHP Warning: stream_socket_accept(): accept failed: Operation timed out HOT 2
- How can the hooks output information HOT 3
- Cannot connect to hooks server with Python. HOT 4
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 dredd-hooks-php.