Laura Vendramini wrote:
Is it possible to have the code in a different package as the
behavioural tests? It works in Eclipse but isn't in Mavin 2.
The folder structure looks something like this...
Project
source
myCode
behaviouralTest
As is it is saying that it can't find the tests. Am I missing a flag?
Can you specify the directory for both myCode and behaviouralTests so
it can find both and run them together?
Sorry I'm not sure I understand your issue.
Let's me rephrase it in a language more familiar to me - and you can
confirm if I understood.
You have a Maven project structure such as
src/main/java -> code
src/test/java -> scenarios
(or different names as configured in the POM)
To run the scenarios that live in the Maven test dir, you need to
specify the use of "test" scenario scope as detailed in
http://jbehave.org/documentation/scenarios/running-scenarios/
(remember to use the latest release 2.1.1 for this to work properly).
An example configuration can be found in:
https://svn.codehaus.org/jbehave/tags/jbehave-2.1.1/examples/trader-test-scope/
Hope this answers your question.
Cheers, m.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email