需要一些帮助我的四个功能文件如何运行多个功能文件?

时间:2018-03-14 06:33:34

标签: junit cucumber feature-file

这是我的代码

@CucumberOptions(       
    features = "src/testresources",
    glue={"Nismo.live.stepsdefinition"},
    tags = {"@CreateNewCourse.Feature,@CreateNewUserAndEnrolledToaCourse.Feature,@LoginLockout.Feature,@LoginOnNismo.Feature,@StudentCarryoverAttempresults.Feature"}           
)

public class CucumberRunnerNismo {
}

错误:

  

[src / testresources]的所有功能都没有匹配过滤器:   [@ CreateNewCourse.Feature,@ CreateNewUserAndEnrolledToaCourse.Feature,@ LoginLockout.Feature,@ LoginOnNismo.Feature,@ StudentCarryoverAttempresults.Feature]

     

0场景0步骤0m0.000s

1 个答案:

答案 0 :(得分:0)

features =“src / testresources”,=>这需要是feature =“src / test / resources”吗? 和/或删除像Grasshopper建议的标签。