behat.yml 应该放在哪里
where sould be put the behat.yml
文档说
All configuration happens inside a single configuration file in the YAML format. Behat tries to load behat.yml or config/behat.yml by default, or you can tell Behat where your config file is with the --config option:
但我不确定是否必须将文件放在根测试文件夹或其他地方。
谢谢
奥斯卡
在当前工作目录下looks for the configuration file。在大多数情况下,这将成为项目的根目录(除非您先 运行 通过将目录更改为测试文件夹来进行测试)。
my-project
|- config
\- behat.yml
|- features
|- tests
|- vendor
|- behat.yml
Behat 将查找名为 behat.yaml
、behat.yml
、behat.yaml.dist
、behat.yml.dist
的文件(按此顺序)。它将首先尝试在项目的根目录中查找配置文件,然后在配置目录中查找。
如果您想将配置文件放在其他地方,请指定 --config
选项。
文档说
All configuration happens inside a single configuration file in the YAML format. Behat tries to load behat.yml or config/behat.yml by default, or you can tell Behat where your config file is with the --config option:
但我不确定是否必须将文件放在根测试文件夹或其他地方。
谢谢
奥斯卡
在当前工作目录下looks for the configuration file。在大多数情况下,这将成为项目的根目录(除非您先 运行 通过将目录更改为测试文件夹来进行测试)。
my-project
|- config
\- behat.yml
|- features
|- tests
|- vendor
|- behat.yml
Behat 将查找名为 behat.yaml
、behat.yml
、behat.yaml.dist
、behat.yml.dist
的文件(按此顺序)。它将首先尝试在项目的根目录中查找配置文件,然后在配置目录中查找。
如果您想将配置文件放在其他地方,请指定 --config
选项。