[ https://jira.codehaus.org/browse/JBEHAVE-766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296655#comment-296655 ]
Mauro Talevi commented on JBEHAVE-766: -------------------------------------- Hi Anders, I think there is some confusion around what is a "test". In Maven, target/test-classes is where the unit test classes would reside, but not necessarily the integration tests. By default, JBehave assumes that you are running integration tests and in a separate bespoke module (because it typically these have a cross-modular and cross-cutting concern). The Maven properties in http://jbehave.org/reference/stable/maven-goals.html does include the property <scope> and it says it defaults to "compile". Hence the plugin does not worry about the surefire properties, e.g. -DskipTests. Of course, you can configure to JBehave stories as JUnit tests, e.g. via the surefire plugin, but it's separate from the JBehave Maven plugin. That said, we can certainly improve the docs to explain and clarify this. > Documentation to configure maven-plugin should be updated > --------------------------------------------------------- > > Key: JBEHAVE-766 > URL: https://jira.codehaus.org/browse/JBEHAVE-766 > Project: JBehave > Issue Type: Improvement > Components: Documentation > Affects Versions: 3.6.2 > Reporter: Anders Sandberg Nordbø > Priority: Minor > > When introducing JBehave into our project I've run into some challenges - > luckily most have been searchable and resolved. > We have to separate tests in pom.xml, and the docs does not say > <scope>test</scope> in the plugin configuration, which makes it harder to get > started using JBehave for some projects. > We also need to be able to run without tests, and use the standard maven flag > -DskipTests - the maven plugin docs does not mention how to get this right, > but this worked for us: > http://stackoverflow.com/questions/7926723/jbehave-maven-how-to-skip-scenario-tests -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email