2
我有兩個特徵文件:做人,具有相同名稱的多個步驟
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那一步。除了擁有所有獨特的步驟名稱之外,是否有任何方法可以在這些文件之間做出區別
謝謝,這就是我一直在尋找的! :) –