Comments (3)
You need to enable debug logging in dredd and then you should see the stdout and stderr. See this.
I'm happy to talk through this with you but I'm going to close this because it isn't actually an issue with the php hooks.
from dredd-hooks-php.
It would help if the readme stated this.
The examples in dredd documentation for PHP hooks are using echo so it’s surprising to the user when the output is not there.
from dredd-hooks-php.
What worked for me:
- Call
dredd
as usual, but add-l debug
argument file_put_contents('php://stderr', 'my message');
Though this seemed to be quite flaky, and did not output as much as I expected it to. Need to investigate.
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
- Set hook handler to php HOT 8
- 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
- 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.