Junit 用Cucumber对Java进行反射错误单元测试

Junit 用Cucumber对Java进行反射错误单元测试,junit,cucumber,Junit,Cucumber,我正在做一个简单的黄瓜测试 运行时,我得到以下错误 java.lang.reflect.InvocationTargetException 我的跑步课是- package com.my.automation; import cucumber.junit.Cucumber; import org.junit.runner.RunWith; @RunWith(Cucumber.class) @Cucumber.Options(format = {"html:target/cucumber-htm

我正在做一个简单的黄瓜测试

运行时,我得到以下错误

java.lang.reflect.InvocationTargetException

我的跑步课是-

package com.my.automation;

import cucumber.junit.Cucumber;
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
@Cucumber.Options(format = {"html:target/cucumber-html","json:target/cucumber.json",
                            "junit:target/cucumber-junit/cukey-junit_results.xml"},
                  features = {"src/test/resources/com/my/automation/cuketest/CukeTest.feature"} )

public class RunTest {

}

您能给出整个异常以及功能和步骤文件吗?您好,请查找整个异常