[英]Do all Codeception gherkin .feature tests end up in Context files?
Moving to Codeception from Behat and still getting used to it's concepts & where things go. 从Behat转到Codeception,仍然习惯它的概念和发展方向。
In the hypothetical that my tests are 100% driven from .feature files, does this mean that all of the test code could be in Contexts? 假设我的测试100%由.feature文件驱动,这是否意味着所有测试代码都可以在Context中使用? That there wouldn't be anything in any functional tests that extend PHPUnit_Framework_TestCase?
在任何扩展PHPUnit_Framework_TestCase的功能测试中都没有任何东西吗? (Assuming that all my functional tests would extend that)
(假设我所有的功能测试都可以对此进行扩展)
Codeception is not driven by Gherkin as Behat is. 编码接收不是像Behat那样由Gherkin驱动的。 If you are moving away from Behat you will write functions in classes in Codeception directly and you are not going to start from a Gherkin script to then derive the executable specs (in your contexts files, page objects).
如果您要离开Behat,您将直接在Codeception中的类中编写函数,而您不会从Gherkin脚本开始然后继承可执行规范(在您的上下文文件中,页面对象)。
In brief the two flows 简而言之,两种流程
Behat 贝哈特
Codeception Codeception
The above is a very simplified description as your question is also very generic. 上面的描述非常简单,因为您的问题也很笼统。 I hope it answers your question
我希望它能回答您的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.