【问题标题】:Codeception for Laravel 5: really interesting?Laravel 5 的 Codeception:真的很有趣吗?
【发布时间】:2017-03-09 23:27:32
【问题描述】:

Codeception 对 Laravel 4 表示赞赏,提出了一种更简单、更完整的验收测试架构

但是 Laravel 5 什么时候推出?

当我看到 Laravel 5 能够进行这个测试时

public function testBasicExample()
{
    $this->visit('/')
         ->click('About Us')
         ->seePageIs('/about-us');
}

我想知道 Laravel 5 是否总是对代码接收感兴趣?

【问题讨论】:

    标签: laravel unit-testing laravel-5 phpunit codeception


    【解决方案1】:

    显然它并不总是很有趣,因为 Laravel 已经为 PHPUnit 提供了一个非常好的fluent wrapper。 Codeception 还使用 PHPUnit 作为运行测试的后端。

    http://codeception.com/docs/05-UnitTests

    我认为它们差别不大,但您应该比较一下。

    【讨论】:

      猜你喜欢
      • 2016-10-19
      • 2016-02-10
      • 1970-01-01
      • 1970-01-01
      • 2013-10-12
      • 1970-01-01
      • 2022-06-14
      • 2012-12-17
      • 2022-06-20
      相关资源
      最近更新 更多