23 Jan 2012 10:49
[Cucumber:10111] Cucumber-jvm - running all features with a specific tag
Hi,
I'm trying to run all my feature with a specific tag from one test
file with the <at> Feature annotation. (If there are any other ways to do
it, please do tell)
So far I have been successful with running one feature by putting my
testfile (RunSlowTests.java) in my step-def package. It looks like
this:
import cucumber.junit.Cucumber;
import cucumber.junit.Feature;
import org.junit.runner.RunWith;
/**
* Run as JUnit test to only run features with the ' <at> SmokeTest' tag
*/
<at> RunWith(Cucumber.class)
<at> Feature(value = "login.feature", tags = { " <at> SmokeTest" })
public class RunSmokeTest {
// Do nothing. This file just run features with a specific tag
}
Now my question is, what can I write instead of value =
"login.feature" so all features with the tag are run, and not just the
scenarios in the "login.feature"?
I have tried all manners of different kinds of relative and absolute
paths and package names and what not, and every time i get:
"cucumber.resources.NoSuchResourceException: No resources at path
[what-ever I write in value = "blahblah"]"
Any constructive suggestion would be very appreciated.
(Continue reading)
RSS Feed