gpt4 book ai didi

intellij-idea - IntelliJ Idea + cucumber运行配置: how to exclude @tags

转载 作者:行者123 更新时间:2023-12-02 11:13:40 25 4
gpt4 key购买 nike

大家好消息。

我不知道如何在 Cucumber 项目的运行配置中排除多个标签。

例如,我有三个测试。

@debug
Scenario outline: foo 1
When step
Then step

@obsolete
Scenario outline: foo 2
When step
Then step

@stable
Scenario outline: foo 3
When step
Then step

我将 ~@debug,~@obsolete 放入“运行配置”对话框窗口中名为“标签过滤器”的文本框中。

但是有一些问题,因为当我开始测试时 - foo 1、foo 2 和 foo 3 无论如何都会开始。

最佳答案

我在另一个 stackoverflow 问题的评论中找到了这个问题的答案:https://stackoverflow.com/a/23743258 .

基本上,要向 IntelliJ 添加多个标签,您需要将 -Dcucumber.options="--tags ~@debug --tags ~@obsolete"添加到默认 Cucumber 设置中的 VM 选项。

关于intellij-idea - IntelliJ Idea + cucumber运行配置: how to exclude @tags,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8178932/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com