Cucumber-JVM と Selenium WebDriver を一緒に使用しています。Eclipse に Maven プロジェクトがあり、pom.xml ファイルの依存関係は次のとおりです。
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.2</version>
<scope>test</scope>
</dependency>
RunCukesTest.java ファイルの内容は次のとおりです。
import org.junit.runner.RunWith;
import cucumber.junit.Cucumber;
@RunWith(Cucumber.class)
@Cucumber.Options(format = {"pretty", "html:target/cucumber-htmlreport","json-pretty:target/cucumber-report.json"})
public class RunCukesTest {
}
次のコード行でエラーが発生します。
import cucumber.junit.Cucumber;
@RunWith(Cucumber.class)
@Cucumber.Options(format = {"pretty", "html:target/cucumber-htmlreport","json-pretty:target/cucumber-report.json"})
しかし、バージョン 1.0.14 を使用すると、うまく動作します。最新バージョンの何が問題になっていますか?