I'm trying to run a simple scenario with one step, but it's ignored.
OS: Ubuntu 13.04
Cucumber: cucumber-jvm-1.1.3
Stepdef in ActivityStepdefs.javapublic class ActivityStepdefs {
@Given("^I launch the activity \"([^\"]*)\"$")
public void iLaunchActivity(String activityName){
//do something
}
}
RunCukesTest.java@RunWith(Cucumber.class)
@Cucumber.Options(
glue = {"com.axxiss.RoBDD.steps"},
features = {"src/test/resources/features/"},
format = "pretty")
public class RunCukesTest {
}
When I run the test I encounter this issue:
Test '.Scenario: Activity exists.Given I launch the activity "com.axxiss.RoBDD.app.SampleActivity"' ignored
Test '.Feature: Activity stepdefs test.Scenario: Activity exists' ignored
You can implement missing steps with the snippets below:
@Given("^I launch the activity \"([^\"]*)\"$")
public void I_launch_the_activity(String arg1) throws Throwable {
// Express the Regexp above with the code you wish you had
throw new PendingException();
}
Feature: Activity stepdefs test
Scenario: Activity exists # ActivityStepdefs.feature:3
Given I launch the activity "com.axxiss.RoBDD.app.SampleActivity"
Wrong test finished. Last started: [] stopped: Scenario: Activity exists; class org.junit.runner.Description