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

标签 intellij-idea cucumber run-configuration

大家好消息。

我不知道如何在 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/

相关文章:

intellij-idea - IDEA Intellij : Build/make when intellij focus is lost

java - IntelliJ IDEA 在哪里保存运行/调试配置?

javascript - WebStorm 中的断点未命中 JavaScript 调试

google-chrome - 在 Ubuntu 14.04 上的 Headless Chrome 中运行 Flash 网页

java - 如何将 CLI 参数传递给 Cucumber Java 测试套件?

grails - grails cucumber 插件的示例?

c++ - 我可以使用 QBS 创建用户定义的运行配置文件吗?

java - 我可以看到 IntelliJ 用于构建 java 项目的确切命令吗?

java - IntelliJ : How to make Maven project use only the dependencies show in pom. xml 文件

intellij-idea - PhpStorm 检查器无法识别 XML 属性中的冒号