2016-11-22 30 views
0

我嘗試在windows PC上使用symfony使用dredd。在Windows上使用dredd鉤子時出錯

我下一步: 我在symfony中poject創建文件夾的Dredd

app dredd src vendor e.t.c

symfony的composer.json

我添加

"ddelnano/dredd-hooks-php":"dev" 

下一步,我創建這個dredd.yml

dry-run: null 
hookfiles: ./hooks.php 
language: php 
sandbox: false 
server: null 
server-wait: 3 
init: false 
custom: 
    apiaryApiKey: 'apikey ' 
    apiaryApiName: 'apiname' 
names: false 
only: [] 
reporter: apiary 
output: [] 
header: [] 
sorted: false 
user: user:pass 
inline-errors: true 
details: true 
method: [] 
color: true 
level: info 
timestamp: true 
silent: false 
path: [] 
hooks-worker-timeout: 5000 
hooks-worker-connect-timeout: 1500 
hooks-worker-connect-retry: 500 
hooks-worker-after-connect-wait: 100 
hooks-worker-term-timeout: 5000 
hooks-worker-term-retry: 500 
hooks-worker-handler-host: localhost 
hooks-worker-handler-port: 61321 
config: ./dredd.yml 
blueprint: test.apib 
endpoint: 'someendpoint' 
and another needed file. 

and dredd response

error: PHP hooks handler command not found: dredd-hooks-php Install php hooks handler by running: $ composer require ddelnano/dredd-hooks-php --dev

爲什麼它不起作用?我究竟做錯了什麼?

P.S.對不起我的英語不好。

回答

0

截至目前,Dredd尚未在Windows上正式支持。不過,它應該安裝並且應該工作得很好,只要你不需要JavaScript以外的其他鉤子。任何其他鉤子此刻都不工作。

雖然支持Windows是路線圖 - https://github.com/apiaryio/dredd/issues/204