用于 PHP 应用程序的黄瓜

2022-01-22 00:00:00 bdd ruby-on-rails php cucumber

是否可以在 Rails 之外使用 Cucumber?我想开始使用它来测试我的一些 PHP 应用程序,但我真的不知道如何开始.

Is it possible to use Cucumber outside Rails? I'd like to start using it for testing some of my PHP applications, but I really don't know how to start.

可能最简单的方法是创建一个仅用于运行 Cucumber 功能的 Rails 项目,但在我看来这太过分了.

Probably the easiest way would be creating a Rails project only to run Cucumber features, but that seems like to me as overkill.

设置 Cucumber 以测试非 Rails 应用程序的最简单方法是什么?

What is the simplest way to set up Cucumber for testing a non-Rails application?

推荐答案

查看:

https://github.com/cucumber/cucumber/wiki/php

cucumber 与 PHP 一起使用很简单,甚至可以管理数据库.

It is easy to use cucumber with PHP, even managing the database.

相关文章