Hi,
Currently I have the problem, that I got the following error when executing
my stories in maven:
[ERROR] Failed to execute goal
> org.jbehave:jbehave-maven-plugin:4.0.4:run-stories-as-embeddables
> (run-stories-as-embeddables) on project secretage_server: Failed to run
> stories as embeddables: Failure in running embeddable:
> com.innogames.secretage.behaviour.stories.LootStories: Task
> java.util.concurrent.FutureTask@17207f5b rejected from
> java.util.concurrent.ThreadPoolExecutor@373052b5[Terminated, pool size = 0,
> active threads = 0, queued tasks = 0, completed tasks = 5] -> [Help 1]
>
The plugin configuration is as follow:
<plugin>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-maven-plugin</artifactId>
<version>${jbehave.version}</version>
<executions>
<execution>
<id>run-stories-as-embeddables</id>
<phase>integration-test</phase>
<configuration>
<scope>test</scope>
<includes>
<include>**/*Stories.java</include>
</includes>
<ignoreFailureInStories>true</ignoreFailureInStories>
<ignoreFailureInView>false</ignoreFailureInView>
<skip>${skipTests}</skip>
</configuration>
<goals>
<goal>run-stories-as-embeddables</goal>
</goals>
</execution>
</executions>
</plugin>
I have these problems since I introduced an abstract JUnitStores
implementation:
@RunWith(JUnitReportingRunner.class)
public abstract class AbstractStory extends JUnitStories {
@Override
public Configuration configuration() {
return new MostUsefulConfiguration().useStoryLoader(new
LoadFromClasspath(this.getClass().getClassLoader()))
.useStoryReporterBuilder(new StoryReporterBuilder().
withDefaultFormats().withFormats(Format.HTML, Format.CONSOLE,
Format.STATS));
}
@Override
protected List<String> storyPaths() {
final String storiesDir = "stories/";
final List<String> returnVal = storyNames().stream()
.map(story -> storiesDir + story)
.collect(Collectors.toList());
return returnVal;
}
public abstract List<String> storyNames();
}
When I run the tests with JUnit everything works fine. Even when I run all
stories at once.
Do you have any idea what could cause this error and how to fix it?
Thank you very much for your help.
Best regards,
Marcus
--
You received this message because you are subscribed to the Google Groups
"JBehave Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/jbehave-dev/46df4647-4038-4996-b0e4-edaa687afa95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.