我尝试在windows PC上使用带有symfony的dredd。
下一步:在symfony poject中创建文件夹dredd
app dredd src供应商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.和dredd反应
错误:未找到PHP钩子处理程序命令: dredd- hooks -php安装php钩子处理程序运行:$ composer需要ddelnano/dredd- hooks -php -dev
为什么不起作用?我做错了什么?
对不起我的英语。
发布于 2016-11-22 13:39:12
到目前为止,Windows上还没有正式支持Dredd。但是,它应该安装,并且应该在不需要JavaScript钩子的情况下工作得很好。其他的钩子目前都不起作用。
不过,对Windows的支持在路线图上-- https://github.com/apiaryio/dredd/issues/204
https://stackoverflow.com/questions/40742559
复制相似问题