I've posted a couple of other messages to the forum over the last couple of days but, for some reason, my messages have not made it past moderation?
Anyway...I'm having a problem by where I can't get Cucumber-JVM to work either via running tests in IntelliJ (using JUnit runner) or via a Maven build on the command line. Basically my tests are just being ignored. I'm simply copied the example Java project into my own standalone project and all I get are console statements to say tests have been ignored. Having gone backwards and forwards with this, I'm becoming almost sure that this is some kind of issue with my environment.
A colleague of mine has got the identical project working via IntelliJ on Ubuntu without any changes. I've tried on two separate machines, both running Windows 7, and I get the same result with ignored tests. My pom looks like this:
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>java-calculator</artifactId>
<packaging>jar</packaging>
<version>1.0.0-SNAPSHOT</version>
<name>Examples: Java Calculator</name>
<properties>
<cucumber.jvm.version>1.0.0-RC3</cucumber.jvm.version>
</properties>
<dependencies>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
<version>${cucumber.jvm.version}</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>${cucumber.jvm.version}</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>${cucumber.jvm.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>${cucumber.jvm.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.picocontainer</groupId>
<artifactId>picocontainer</artifactId>
<version>2.14.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<version>2.7.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Test '.Scenario: Give correct change.Given the following groceries:' ignored
Test '.Scenario: Give correct change.When I pay 25' ignored
Test '.Scenario: Give correct change.Then my change should be 4' ignored
That is all I see. I really just don't understand what's missing here - it's as though Cucumber-JVM is not finding the *Stepdefs that match with features. I would be massively grateful for some help - I really do think it warrants investigation to rule out a potential issue with the Cucumber-JVM framework itself.