Skip to main content
 首页 » 编程设计

python之生菜场景可以有多个标签吗

2025年05月04日13JustinYoung

这类似于问题 how to specify which lettuce scenario to run

在问题中,他们给出了每个场景使用一个标签的示例。我想知道我是否可以添加更多标签,就像在 TestNG 中您可以添加多个组一样。

请您参考如下方法:

Here它说是的,你可以应用多个标签

@wip @slow 
Feature: annual reporting 
  Some description of a slow reporting system. 

据我所见,lettuce的文档还没有包含这个特性。

我的建议是尽可能少吃生菜,使用 behave相反。