Test Runner类未运行,但能够执行功能文件

时间:2018-06-28 05:47:16

标签: java eclipse automation cucumber cucumber-jvm

我给了正确的步骤定义类,但是当我尝试执行Test Runner类时,它没有执行。但是当我运行功能文件时,测试正在执行。 另外,我的代码在使用现有代码之前已经正常工作,当我尝试将Test Runner类作为Junit测试运行时,突然没有执行。

Test Runner Class Project structure

package org.Cucumber.TestExecution;

import org.junit.runner.RunWith;

import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;

@RunWith(Cucumber.class)
@CucumberOptions(
        features = {"Feature"}
        ,glue={"src.org.Cucumber.StepDefinition"}        
        )

public class TestRunner {

}

0 个答案:

没有答案
相关问题