[
https://jira.codehaus.org/browse/JBEHAVE-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296632#comment-296632
]
Anders Sandberg Nordbø commented on JBEHAVE-454:
------------------------------------------------
FWIW [~estaub], this was helpful to me as well. Thanks for asking - even if
they don't like tickets to be opened, this is searchable info on the web.
Note that the online docs are missing this <scope>test</scope> from the
configuration and will not work on many projects.
> Can't run-stories-as-embeddables from test directory using Maven plugin
> -----------------------------------------------------------------------
>
> Key: JBEHAVE-454
> URL: https://jira.codehaus.org/browse/JBEHAVE-454
> Project: JBehave
> Issue Type: Bug
> Components: Maven Plugin
> Affects Versions: 3.1.2
> Reporter: Edward Staub
>
> When I tried to use it, the plugin couldn't find my .java file.
> I suspect that this is because the classloader obtained under Maven with a
> story that uses
> new LoadFromClasspath(this.getClass().getClassLoader())
> as a StoryLoader doesn't include the test class directory - even though the
> running class is IN the test class directory. The same code works correctly
> under the Eclipse debugger (including the test class directory in the
> classpath). Everything else works correctly in Maven - unit tests, etc.
> The configuration:
> <configuration>
>
> <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
>
> <testSourceDirectory>${project.build.testSourceDirectory}</testSourceDirectory>
> <includes>
> <include>**/ProcessorTestStory.java</include>
> </includes>
> <metaFilters>
> <metaFilter>+author *</metaFilter>
> <metaFilter>-skip</metaFilter>
> </metaFilters>
> <systemProperties>
> <property>
> <name>java.awt.headless</name>
> <value>true</value>
> </property>
> </systemProperties>
>
> <ignoreFailureInStories>true</ignoreFailureInStories>
> <ignoreFailureInView>false</ignoreFailureInView>
> </configuration>
> -Ed
--
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