In my cucumber project, whenever I execute my testrunner (using junit), it terminates without throwing any error before any test is executed but when I execute my feature file then all the tests get executed without any issue, why, where am I going wrong?
Following is my project structure:
src
|____main
|
|____test
|___java
|___features
| |___quotation.feature
|___stepdefinitions
| |___quotation.java
|___AppHooks
| |___ApplicationHooks.java
|___testRunners
|___MyTestRunner.java
Following is my testrunner class (MyTestRunner.java):
package testRunners;
import org.junit.runner.RunWith;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/java/features/quotation.feature",
glue= {"stepdefinitions","AppHooks"},
plugin= {"pretty"}
)
public class MyTestRunner {
}