Maybe it could be that. Right now I have a parent package "cucumber" which has the Runner class "CucumberRunnerTest.java" and a child package which has the StepDefinitions.java and the feature file "my feature.feature". I just changed my POM and RunnerTestfiles to this now. I still cannot get the StepDefintion class to execute..but the BUILD shows as success.
@CucumberOptions(
features = "src/cucumber/features/",
glue={"src/cucumber/"},
dryRun = false,
monochrome = true
)
public class CucumberRunnerTest {
}
=====================================
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.8</source>
<target>1.8</target>
<compilerArgument>-Werror</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>2.18.1</version>
</dependency>
</dependencies>
<configuration>
<includes>
<include>StepDefinitions1.java</include>
<include>CucumberRunnerTest.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
Thanks!