Cucumber: Class not found com.example.runner.RunnerTest
问题 I have a maven project to run cucumber and selenium . The *.feature files are defined in the src/features , and the steps are defined in the src/test/java/com/example/steps . I have also defined a test runner class as below: package com.example.runner; import org.junit.runner.RunWith; import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber; @RunWith(Cucumber.class) @CucumberOptions( features={"src/features"}, glue="com/example/steps") public class RunnerTest { } The problem is