如何告诉命令行有关多个步骤/目录

时间:2016-12-20 22:02:02

标签: python bdd gherkin

我们使用Behave将我们的Gherkin Feature文件绑定到Python。我遇到了一个问题,我们开始复制我们的step_impl函数,我想消除代码重复,但我无法弄清楚如何表达对steps/目录的行为不会立即在功能文件旁边。以下是我们的功能文件结构:

all_components/features/huge.feature
all_components/features/steps/steps.py
component1/features/little.feature
component1/features/steps/steps.py

我想在huge.feature上运行Behave并在component1/features/steps/下找到步骤实现,而不仅仅是all_components/features/steps.py,以便各个组件功能和步骤保持不变,我可以重复使用步骤在我的huge.feature

的组件功能中
$ behave all_components/features/

0 个答案:

没有答案
相关问题