我有简单的功能:
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 lettuce 测试运行器执行功能时,它的运行第一个场景没有问题,但第二个从未执行(但它知道还有其他场景) - 所以它看起来像:
如何
Scenario Outline
使用这个运行器运行?
系统:
Windows 8.1、PyCharm 4.0.1 139.556 EAP Professional、生菜 0.2.20、Python27