Styrow.dev
Question 22 of 27
Cucumber Topic: General medium

How does a JUnit Test Runner class look like?

Question

How does a JUnit Test Runner class look like?

Answer

import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber; import org.junit.runner.RunWith;

@RunWith(Cucumber.class) @CucumberOptions( features=""src/test/resources/features"", glue= ""ca.testing.stepdefinitions"")

public class TestRunner{ }