如何使用JUnit Runner与Jacco一起运行Cucumber

时间:2018-07-18 07:36:31

标签: java cucumber cucumber-jvm

我正在使用这样的类,我需要为我的TestCases找到CodeCoverage。如何通过Cucumber Runner做到这一点?

黄瓜测试包;

import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import features.Steps;
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
@CucumberOptions(
        plugin = {"junit:Cucumber-Result.xml"},
        features = {"Constants.feature"},
        glue = {"features"}
)
public class CucumberRunnerTest {

   }

0 个答案:

没有答案