Can't run-stories-as-embeddables from test directory using Maven plugin
-----------------------------------------------------------------------
Key: JBEHAVE-454
URL: http://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 contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.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