[Cucumber-JVM] None of the features at [] matched the filters

453 views
Skip to first unread message

Den Dem

unread,
Apr 17, 2017, 4:05:26 PM4/17/17
to Cukes
Maybe other set of eyes could help me on this matter
I have projects with 2 modules(to separate test types) which of them has it's own pom.xml and separate testRunner
When I try to run scenario with desired tag
I get error - 
None of the features at [classpath:ui-acceptance-tests/src/test/resources/featureFiles] matched the filters: [@tagname]

Feature file with scenario and that tag is sitting under resources/featureFiles
testRunner is set this way

@RunWith(Cucumber.class)
@CucumberOptions(
monochrome = true,
features = { "classpath:src/test/resources/featureFiles" },
glue = { "src/test/stepDefinition" },
//tags = { "@tagname"},
plugin = {"pretty",
"html:target/cucumber-html-report",
"json:target//cucumber.json" }
)
public class TestRunner {

public static Map<String, String> config;
public static Scenario scenario;
}


command I use to execute from CLI 
mvn test -Dcucumber.options="--tags @tagname"

I do not understand why testRunner does not read feature file
If to run from IDE, just fine





structure.PNG
Reply all
Reply to author
Forward
0 new messages