Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cvarshn-cloud opened this issue Jul 1, 2021 · 2 comments

Comments

@cvarshn-cloud
Copy link

cvarshn-cloud commented Jul 1, 2021

#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 {
}

@mojavelinux
Copy link
Contributor

@cvarshn-cloud please don't mention me directly.

@wakaleo
Copy link
Member

wakaleo commented Jul 1, 2021

That plug-in isn't part of the Serenity code base, so you would need to refer to that project (if it is still maintained). Cucumber 6 now provides built-in support for parallel execution so it does not seem necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants