Note that there are some explanatory texts on larger screens.

plurals
  1. POgradle cucumber jvm exception: No features found at [classpath:]
    text
    copied!<p>I have already looked at the similar posts and followed the suggestions in there, still not able to execute any cucumber test using command: gradle test. It always returns the same error saying cannot find .feature files.</p> <p>Similar posts: 1) <a href="https://stackoverflow.com/questions/14437715/cucumber-jvm-cucumberexception-no-features-found-at">cucumber jvm CucumberException: No features found at []</a> 2) <a href="https://stackoverflow.com/questions/9330508/gradle-doesnt-pick-up-cucumber-jvm?rq=1">Gradle doesn&#39;t pick up Cucumber-jvm</a> 3) <a href="https://stackoverflow.com/questions/9663117/how-do-i-set-the-path-to-my-cucumber-features-using-cucumber-junit?rq=1">How do I set the path to my Cucumber features using cucumber-junit?</a> 4) <a href="https://stackoverflow.com/questions/13861060/specify-the-feature-file-location-in-cucumber?rq=1">Specify the feature file location in cucumber</a></p> <p>Here is my gradle build script:</p> <pre><code>sourceSets { main { java.srcDir 'src/jjrom' } test { java.srcDir 'src/test/java' resources.srcDir 'src/test/resources' } } dependencies { testCompile : "junit:junit:4.11" testCompile : "info.cukes:cucumber-core:1.1.5" testCompile : "info.cukes:cucumber-picocontainer:1.1.5" testCompile : "info.cukes:cucumber-junit:1.1.5" testCompile : "info.cukes:cucumber-java:1.1.5" testCompile : "org.picocontainer:picocontainer:2.14.3" testCompile : "info.cukes:gherkin:2.9.3" testCompile : "info.cukes:cucumber-jvm-deps:1.0.3" testCompile : "info.cukes:cucumber-spring:1.1.5" testCompile : "org.hamcrest:hamcrest-core:1.3" } </code></pre> <p>Now, my folder structure is as follows:</p> <pre><code>src/test/ java/ com/mypackage/ Sample.java resources com/mypackage/ test.feature </code></pre> <p>My Sample.java class looks like this:</p> <pre><code>package test.java.com.mypackage; import cucumber.api.junit.*; import org.junit.runner.*; @RunWith(Cucumber.class) public class Sample_cucumber_test { } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload