PHPUnit Selenium integration for Laravel 5.2+


PHPUnit Selenium integration for Laravel 5.2+

在Laravel 5.2发布之前,laracast的集成包为Laravel提供了Selenium集成。我找不到任何类似的5.2版本的软件包。有吗?如何将selenium测试集成到Laravel中?

我看过这些链接,他们没有提供任何解决方案:
硒与Laravel 5.2
有人尝试过Laravel集成包在Laravel 5.2吗?

PHPUnit本身有一个selenium扩展。它不太像laravelish,也没有现代WebDriver接口的支持。

CodeCeption是一个非常强大且易于使用的PHP测试工具。它不仅提供了单元测试API,还提供了自己的selenium验收测试API。

它也有完美的Laravel集成和一个伟大的chrome扩展生成验收测试在浏览器中。下面是来自文档的示例代码:

<?php
$I->amOnPage('/login');
$I->fillField('username', 'davert');
$I->fillField('password', 'qwerty');
$I->click('LOGIN');
$I->see('Welcome to codeception!');

下面是使用CodeCeption开始验收测试的分步指南:
http://codeception.com/11-20-2013/webdriver-tests-with-codeception.html

这里有一些其他的选项:
https://github.com/lmc-eu/steward
https://github.com/Modelizer/Selenium
https://github.com/jhoopes/laravel-selenium-driver

Update: Good news.
更新:参见Mink的PHPUnit集成