Skip to content

Instantly share code, notes, and snippets.

@akashdktyagi
Created April 12, 2021 13:15
Show Gist options
  • Save akashdktyagi/13cf30493f5c81c126a1c3d39df79ffd to your computer and use it in GitHub Desktop.
Save akashdktyagi/13cf30493f5c81c126a1c3d39df79ffd to your computer and use it in GitHub Desktop.
Test Runner for Cucumber Automation
package runner;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions
( features="classpath:features",
glue="",
tags="",
plugin = {"pretty",
"html:target/html/",
"json:target/json/file.json",
"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"},
dryRun=false
)
public class RunTest {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment