Karthikeyan
Karthikeyan

Reputation: 2724

Unable to find the features file?

I am running Cucumber JVM for a POC with Selenium 2.37.

The folder structure of my project as follows

 src
     >> main   
      > test
            >java
                 >package
                         >TestRunner.java
                         >StepfDef.java
            >resource
                 >package
                         >bdddemo.features

When i run the test runner via Junit, i am getting the following error message.

cucumber.runtime.CucumberException:
No features found at [classpath:test/java/com/package]

I believe the folder structure has some issue.

Can anybody post me where the Cucumber-JVM is actually looking for story files by default ?

Upvotes: 0

Views: 1159

Answers (1)

Stefan Jansen
Stefan Jansen

Reputation: 591

By default, when using classpath:, Cucumber starts looking in the root of you classpath.

If you configure Cucumber to search in "classpath:features", you can put your features in src/test/resources/features.

Upvotes: 1

Related Questions