我在詹金斯(Jenkins)中设置了多个作业,每个作业运行一组带有特定标签的场景。
我正在使用具有以下目标和参数的顶级Maven目标来运行它们:
clean test -Dcucumber.options="--tags @RunThis"
这在两周前运行良好,但是今天当我重新执行工作时,没有执行任何方案。
下面是FeatureRunner.java中的代码
@RunWith(Cucumber.class)
@CcucumberOptions(
monochrome = true,
dryRun = false,
junit = {"--allow-started-ignored"},
plugin = {"pretty"},
features = "src/test/java/test/features/",
tags = "@RunThis",
glue = {"test/testUtils", "test/steps", "src/test/java/test/steps", "resources", "testUtils"}
)
public class FeatureRunner {
}
我以以下格式命名方案:
@RunThis
Scenario Outline: <identifier> - <testcaseName>
When ...
And ...
Then ...
Examples:
| identifier | testcaseName | ...
| Test ID 1 | Sample test case name | ...
我在构建日志中收到以下消息:
---------------------------------------------------
T E S T S
---------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ---------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ---------------------------------------------------------------
我该如何解决?