AWS Device Farm - 不是黄瓜功能路径的文件或目录
AWS Device Farm - Not a file or directory for cucumber features path
我正在尝试 运行 我们的应用程序在 Device Farm 中进行测试,但我收到一条错误消息,指出它找不到这些功能。 java.lang.IllegalArgumentException: Not a file or directory: /tmp/scratchktFI9V.scratch/test-packagehFUzci/src/test/resources/features
我已经得到示例回购和应用 运行 并按照 this guide 传递,这一切都很好但是当 运行 自己的时候我得到这个错误。
我注意到示例测试在功能路径中使用 classpath
但是当我尝试这个时我只得到 Not a file or directory: /tmp/scratchRlueAN.scratch/test-packageMMRQh4/classpath
这些是我的黄瓜选项:
@CucumberOptions(
monochrome = true,
tags = {"@Login"},
features = "src/test/resources/features",
glue = "steps"
)
我应该在自己的测试中设置什么?
提前致谢
尝试使用 classpath:
。注意末尾的冒号。
我正在尝试 运行 我们的应用程序在 Device Farm 中进行测试,但我收到一条错误消息,指出它找不到这些功能。 java.lang.IllegalArgumentException: Not a file or directory: /tmp/scratchktFI9V.scratch/test-packagehFUzci/src/test/resources/features
我已经得到示例回购和应用 运行 并按照 this guide 传递,这一切都很好但是当 运行 自己的时候我得到这个错误。
我注意到示例测试在功能路径中使用 classpath
但是当我尝试这个时我只得到 Not a file or directory: /tmp/scratchRlueAN.scratch/test-packageMMRQh4/classpath
这些是我的黄瓜选项:
@CucumberOptions(
monochrome = true,
tags = {"@Login"},
features = "src/test/resources/features",
glue = "steps"
)
我应该在自己的测试中设置什么?
提前致谢
尝试使用 classpath:
。注意末尾的冒号。