Hi George :)

I don't know the gameoflife example, but this is how I've setup my devenv
(and also that for the professional scrum developer training).
from the command line you would use maven to run the stories. In order to
do that, This is how I have configured the plugin:

<plugin>
<groupId>org.jbehave</groupId>
 <artifactId>jbehave-maven-plugin</artifactId>
<version>${jbehave.core.version}</version>
 <executions>
<execution>
<id>unpack-view-resources</id>
 <phase>process-resources</phase>
<goals>
<goal>unpack-view-resources</goal>
 </goals>
</execution>
<execution>
 <id>embeddable-stories</id>
<phase>integration-test</phase>
 <configuration>
<includes>
<include>${embeddables}</include>
 </includes>
<excludes />
<ignoreFailureInStories>true</ignoreFailureInStories>
 <ignoreFailureInView>false</ignoreFailureInView>
<threads>1</threads>
 <metaFilters>
<metaFilter></metaFilter>
</metaFilters>
 </configuration>
<goals>
<goal>run-stories-as-embeddables</goal>
 </goals>
</execution>
</executions>
 </plugin>
...
<properties>
<jbehave.core.version>3.5.4</jbehave.core.version>
 <jbehave.site.version>3.1.1</jbehave.site.version>
<embeddables>**/*Stories.java</embeddables>
 </properties>

Then, in order to make them execute with JUnit, my *Stories.java class
looks like this:

public class AllAcceptanceTestStories extends JUnitStories {

public AllAcceptanceTestStories() {
configuredEmbedder().embedderControls()
 .doGenerateViewAfterStories(true)
.doIgnoreFailureInStories(true).doIgnoreFailureInView(false)
 .useThreads(1).useStoryTimeoutInSecs(60);
}

@Override
 public Configuration configuration() {
Class<? extends Embeddable> embeddableClass = this.getClass();
...
}
...
}

Hope that helps,

Andreas

On Thu, Dec 8, 2011 at 4:39 PM, George Dinwiddie <[email protected]>wrote:

> I'm finding it surprisingly difficult to get started with JBehave, when I
> find Cucumber so easy to use.  Mostly it's my unfamiliarity with Maven, but
> some of it seems to be difficulty in finding current information on
> jbehave.org.  Please bear with my ignorant questions and help me move
> forward.
>
> I've got the gameoflife example loaded into Eclipse.  It compiles and runs
> the junit tests.
>
> My current question: How can I run the stories either from the command
> line or within the Eclipse junit runner?
>
>  thanks,
>   George
>
> --
>  ------------------------------**------------------------------**
> ----------
>  * George Dinwiddie *                      http://blog.gdinwiddie.com
>  Software Development                    http://www.idiacomputing.com
>  Consultant and Coach                    http://www.agilemaryland.org
>  ------------------------------**------------------------------**
> ----------
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe from this list, please visit:
>
>   
> http://xircles.codehaus.org/**manage_email<http://xircles.codehaus.org/manage_email>
>
>
>


-- 
Mit freundlichen Grüßen / Best regards

Andreas Ebbert-Karroum | Bereichsleiter der Agilen Software Factory

codecentric AG | Merscheider Straße 1 | 42699 Solingen | Deutschland
tel: +49 (0) 212.23362825 | fax: +49 (0) 212.23362879 | mobil: +49 (0)
175.2664109
www.codecentric.de | blog.codecentric.de | www.meettheexperts.de |
www.more4fi.de

Sitz der Gesellschaft: Düsseldorf | HRB 63043
Vorstand: Klaus Jäger (Vorsitzender) | Mirko Novakovic . Rainer Vehns
Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Bernd Klinkmann . Jürgen
Schütz

Diese E-Mail einschließlich evtl. beigefügter Dateien enthält vertrauliche
und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige
Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie
bitte sofort den Absender und löschen Sie diese E-Mail und evtl.
beigefügter Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen
evtl. beigefügter Dateien sowie die unbefugte Weitergabe dieser E-Mail ist
nicht gestattet.

Reply via email to