Error while running cucumber in junit

前端 未结 6 1187
[愿得一人]
[愿得一人] 2021-01-19 01:18

Hi i am new to cucumber java. i am trying to run a simple cucumber feature test. below are my feature file, step definition file and junit runner file. but i am not able to

6条回答
  •  面向向阳花
    2021-01-19 01:41

    The error means that cucumber.runtime.RuntimeOptions has no constructor which takes a List as argument.

    Since all classes are part of cucumber, I suspect a bug in the release. Run mvn dependency:tree and search the output for cucumber. Make sure that you have only a single version of the dependency.

    If your classpath is good, try an older version.

    If that works, download the sources for cucumber and compile them. Does it work now? If so, open a bug report telling the Cucumber project that the latest release wasn't compile correctly.

提交回复
热议问题