我有两个功能文件:
delete.feature
new_directory.feature
和两个步骤文件:
delete.py
new_directory.py
每个功能文件的开头都是这样的:
Background:
Given 'Workspace has the following structure'
按照不同的表。
当我在步骤文件装饰器中编写时:
@given('Workspace has the following structure')
它怎么知道背景属于哪个特征文件?当我跑步时表现
new_directory.feature
我可以看到它从 delete.feature 运行该步骤。除了拥有所有唯一的步骤名称之外,有没有办法在这些文件之间产生差异?