Skip to content

Which argument to use for extraGlue option? #2845

Open
@cj19

Description

@cj19

I'd like to register a gradle task to run my integration tests with cucumber. The task definition looks like this:


tasks.register('integrationTest', Test) {
    description = 'Runs integration tests.'
    group = 'verification'

    dependsOn assemble, testClasses
    doLast {
        javaexec {
            main = "io.cucumber.core.cli.Main"
            classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
            args = [
                    '--plugin', 'pretty',
                    '--plugin', 'json:target/cucumber/cucumber.json',
                    '--plugin', 'org.citrusframework.cucumber.CitrusReporter',
                    '--tags', '"not @ignore"',
                    'src/test/resources/features'
            ]
            ignoreExitValue = true
        }
    }
}

In my project there are no steps definitions, because I use yaks standard library and provided that as an extraGlue cucumber option. Is there any way to include that option in here the task definition(e.g: '--cucumber.extraGlue', 'org.citrusframework.yaks.standard')? As i can see that in the README file this is not supperted yet. Is there any other alternative?

Metadata

Metadata

Assignees

No one assigned

    Labels

    📖 documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions