【问题标题】:How to automate Test driven development (TDD) syntax for websites coded in Ruby?如何为用 Ruby 编码的网站自动化测试驱动开发 (TDD) 语法?
【发布时间】:2017-03-22 05:29:17
【问题描述】:

有了这个语法,我该如何自动化它以及我应该使用什么 IDE?

When I fill in "Email" with ""
  And I press "Yes – this is my email address"
  Then I should see "Email must be completed"
  When I fill in "Email" with "emna@mail.com"
  And I press "Yes – this is my email address"
Then a new user should exist 

我应该使用 javascript 吗?

【问题讨论】:

    标签: javascript ruby ruby-on-rails-3 tdd web-testing


    【解决方案1】:

    显示的语法是 Gherkin。它可以用黄瓜或菠菜自动化。

    https://github.com/cucumber/cucumber-ruby

    https://github.com/codegram/spinach

    【讨论】:

    • 感谢您的回答:)
    猜你喜欢
    • 1970-01-01
    • 2011-02-11
    • 2017-05-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-30
    相关资源
    最近更新 更多