I am trying to run our app tests in device farm but I am getting an error saying it cannot find the features. java.lang.IllegalArgumentException: Not a file or directory: /tmp/scratchktFI9V.scratch/test-packagehFUzci/src/test/resources/features
I have got the example repo and app running and passing as per this guide which is all great but when running our own I get this error.
I noticed the example tests uses classpath
in the features path but when i try this i just get Not a file or directory: /tmp/scratchRlueAN.scratch/test-packageMMRQh4/classpath
These are my cucumber options:
@CucumberOptions(
monochrome = true,
tags = {"@Login"},
features = "src/test/resources/features",
glue = "steps"
)
What should I set this as in my own tests?
Thanks in advance
Try using classpath:
. Note the colon at the end.