You guessed right:)
And yes I saw the trader example, and though actually that it were
either accidental or something I haven't thought about as you have now
explained... Cool :)
Mauro Talevi wrote:
Nino Saturnino Martinez Vazquez Wael wrote:
Hi Guys
Im having some trouble getting my JBehave tests running when I do
maven install, I know this is problably some maven clutter i've put
this in my pom, I just want jbehave test to be run on every build:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-maven-plugin</artifactId>
<configuration>
<scenarioIncludes>
<scenarioInclude>**/*scenario/*.java</scenarioInclude>
</scenarioIncludes>
<scenarioExcludes>
<scenarioExclude>**/*Steps.java</scenarioExclude>
</scenarioExcludes>
</configuration>
</plugin>
And I do have my tests in a package called scenario, and the tests
are running from within eclipse.
Hi Nino,
OTOH I would bet that you've put you're scenarios in the module test dir.
You'll notice from the examples (e.g. the trader one) that by default
they are in the main dir. This is not accidental, as it's meant to
distinguish behaviours as acceptance tests from unit tests.
Nevertheless, where you want to put your behaviour code is up to you
(we believe in giving developers as much choice as possible). You can
configure the source directory used via the (optional) scope parameter
(which defaults to compile)
<configuration>
// same config as above
<scope>test</scope>
</configuration>
If this does not work, do let us know. Again, I'm kinda guessing
here, as I don't have the full details of your project build setup.
Cheers
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email