如何使用Lettuce runner在PyCharm 4中运行Scenario Outline

时间:2014-11-28 11:56:51

标签: python-2.7 bdd pycharm lettuce

我有一个简单的功能:

Feature: Lol and other words

Scenario: Lol printing
  Given I like print "lol"

Scenario Outline: Words printing
  Given I like print "<word>"
Examples:
| word |
| lol  |
| ala  |

并实施:

from lettuce import step

@step('I like print "([^"]+)"')
def step_impl(step, word):
    print word

当PyCharm生菜测试运行器执行功能时,它运行第一个场景没有问题,但第二个从未执行(但它知道还有其他场景) - 所以它看起来像: enter image description here 如何与此跑步者一起运行Scenario Outline? 系统:
Windows 8.1,PyCharm 4.0.1 139.556 EAP Professional,生菜0.2.20,Python27

1 个答案:

答案 0 :(得分:1)

这是错误,并向JetBrains团队报告:
https://youtrack.jetbrains.com/issue/PY-14572#tab=Comments