Skip to content

Updated format required for cucumber-serenity-runner.vm to support cucumber version 6 #134

@cvarshn-cloud

Description

@cvarshn-cloud

#parse("/array.java.vm")
#if ($packageName)
package $packageName;

#end##
import org.junit.runner.RunWith;

import io.cucumber.junit.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;

@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
strict = $strict,
features = {"$featureFile"},
plugin = #stringArray($plugins),
monochrome = $monochrome,
#if(!$featureFile.contains(".feature:") && $tags)
tags = #stringArray($tags),
#end
glue = #stringArray($glue))
public class $className {
}

How to pass tags without curly braces in this custom runner for cucumber 6.0??

@CucumberOptions(features = "src/test/resources/features",
tags = "@unknown", snippets = SnippetType.CAMELCASE, monochrome = true, strict = true,
plugin = {"json:target/cucumber-report-html/cucumber.json"})
public class RunnerTest {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions