在Groovy-cucumber中没有匹配的粘合代码 [英] does not have a matching glue code in Groovy-cucumber

查看:58
本文介绍了在Groovy-cucumber中没有匹配的粘合代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在基于Maven的框架中使用 cucumber-groovy ,无法找到与stepDefinitions的粘合.在功能文件中获取没有匹配的粘合代码.它在黄瓜行家项目中.我已将功能文件夹转换为源文件夹".

I'm using cucumber-groovy with maven based framework and unable to find the glue to stepDefinitions. Getting does not have a matching glue code in feature file. It is in Cucumber-maven Project. I have converted the Feature folder to 'Source folder'.

错误:

Unable to create src/test/groovy & src/test/resource (to use as feature's folder)

这是我的测试运行器CucumberOptions:

Here is my Test Runner CucumberOptions:

@CucumberOptions( features = ["src/test/resources/"],
        glue = ["com.esw.taa.avs.steps"],
        plugin = ["html:esw-tests/report"],
        dryRun = false,
        monochrome = true,
        strict = true
        )

推荐答案

我也使用Groovy-cucumber,但是没有Maven.这是我的CucumberOptions:

I also use Groovy-cucumber, but without Maven. Here is my CucumberOptions:

@CucumberOptions(
    plugin = "pretty",
    monochrome = true,
    tags = "not @wip",
    features = "src/test/resources/Features",
    glue = {"test.java.StepDefinitions"},
    junit = "--step-notifications"
    )

这篇关于在Groovy-cucumber中没有匹配的粘合代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆