我安装了 vm ubuntu 来宾操作系统。
我的应用程序正在从我的主机操作系统中的浏览器运行,网址为
http://abc.localhost:8888 http://abc.localhost:8888
我输入
php codecept.phar 在来宾操作系统终端中运行。
我收到以下错误:
[Codeception\Exception\Configuration]
Mink could not be found and loaded
我的 Acceptance.yml 说
# Codeception Test Suite Configuration
# suite for acceptance tests.
# perform tests in browser using the Selenium-like tools.
# powered by Mink (http://mink.behat.org).
# (tip: that's what your customer will see).
# (tip: test your ajax and javascript by one of Mink drivers).
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: WebGuy
modules:
enabled:
- PhpBrowser
- WebHelper
- Mink
config:
PhpBrowser:
url: 'http://abc.localhost:8888'
我尝试过在acceptance.suite.yml 中使用和不使用8888。我犯了同样的错误。
请指教。
警告:我还在以下位置交叉发布了同一张票https://github.com/Codeception/Codeception/issues/388 https://github.com/Codeception/Codeception/issues/388。如果我从那里得到答案,将更新这个问题。
- 通过 SSH 连接到来宾虚拟机。
- 须藤纳米 /etc/hosts
- 添加以下内容
127.0.0.1 abc.localhost
- 确保 Acceptance.yml 正确。
# Codeception Test Suite Configuration
# suite for acceptance tests.
# perform tests in browser using the Selenium-like tools.
# powered by Mink (http://mink.behat.org).
# (tip: that's what your customer will see).
# (tip: test your ajax and javascript by one of Mink drivers).
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: WebGuy
modules:
enabled:
- PhpBrowser
- WebHelper
config:
PhpBrowser:
url: 'http://abc.localhost'
然后你运行命令php codecept.phar run
在您的来宾虚拟机内
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)