Hi,

can you please try configuring your scenario reporters as in the trader
example:

https://svn.codehaus.org/jbehave/trunk/core/examples/trader/

The other examples has not been updated to be configured with file-based
reports.  Will update it.

Cheers

On 01/06/2010 08:06, Stephan Schwab wrote:
> Hi Mauro,
>
> sol-2:~ sns$ mvn -v
> Apache Maven 2.2.0 (r788681; 2009-06-26 08:04:01-0500)
> Java version: 1.6.0_20
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.6.3" arch: "x86_64" Family: "mac"
>
> I don't have any specific scenario configuration. Just this:
>
> public class UserLogsInSuccessfully extends Scenario {
>       public UserLogsInSuccessfully() {
>               super(new CandidateSteps[] { new LoginSteps() });
>       }
> }
>
> public class LoginSteps extends Steps  {
>       
>       @Given("I am not logged in")
>       public void logOut() {
>       }
>       
>       @When("I log in as $username with a password $password")
>     public void logIn(String username, String password) {
>               System.out.println("login: " + username + " / " + password) ;
>       }
>
>       @Then("I should see a message, \"$message\"")
>     public void checkMessage(String message) {
>               System.out.println("message: " + message) ;
>       }
>       
> }
>
> Given I am not logged in
> When I log in as Liz with a password JBehaver
> Then I should see a message, "Welcome, Liz!"
>
> That's basically the example from the documentation.
>
> Thanks for looking into this.
>
> Stephan
>
> On Jun 1, 2010, at 1:02 AM, Mauro Talevi wrote:
>
>   
>> Hi Stephan,
>>
>> can you please provide a sample of your scenario configuration, as well
>> as your running env, as outputted by mvn -v.
>>
>> Cheers
>>
>> On 01/06/2010 07:49, Stephan Schwab wrote:
>>     
>>> Dear All!
>>>
>>> The JBehave Maven plugin is giving me a hard time. I cannot create reports 
>>> for my scenarios. This is how running "mvn install" looks like:
>>>
>>> [INFO] 
>>> [INFO] --- jbehave-maven-plugin:2.5.8:run-scenarios (run-scenarios) @ 
>>> jbehave ---
>>> [INFO] Running scenario org.courseware.scenarios.UserLogsInSuccessfully
>>> login: Liz / JBehaver
>>> message: Welcome, Liz!
>>> [INFO] 
>>> [INFO] --- jbehave-maven-plugin:2.5.8:render-reports (render-reports) @ 
>>> jbehave ---
>>> [INFO] Rendering reports in '/Users/sns/Documents/CourseWare/Java TDD BDD 
>>> Practices Tools/workspace/jbehave/target/jbehave-reports' using formats 
>>> '[txt, html, xml]' and template properties '{renderedDirectory=rendered, 
>>> defaultFormats=stats}'
>>> [INFO] Rendered reports with 0 scenarios (of which 0 failed)
>>> [INFO] 
>>>
>>> The run-scenarios goal is executed and the one scenario that I have is 
>>> being executed. But for the render-reports goal no scenario is run and 
>>> hence there are only empty reports.
>>>
>>> Attached is the build section from my pom.xml. I have nothing in the report 
>>> section.
>>>
>>> Many thanks for any help I will hopefully receive.
>>>
>>> Greetings,
>>> Stephan
>>>
>>> <build>
>>>     <plugins>
>>>             <plugin>
>>>                             <groupId>org.jbehave</groupId>
>>>                             <artifactId>jbehave-maven-plugin</artifactId>
>>>                             <version>2.5.8</version>
>>>                             <executions>
>>>                                     <execution>
>>>                                             <id>run-scenarios</id>
>>>                                             <phase>integration-test</phase>
>>>                                             <configuration>
>>>                                                     <scope>test</scope>
>>>                                                     
>>> <classLoaderInjected>false</classLoaderInjected>
>>>                                                     <scenarioIncludes>
>>>                                                             
>>> <scenarioInclude>**/scenarios/*.java</scenarioInclude>
>>>                                                     </scenarioIncludes>
>>>                                                     <scenarioExcludes>
>>>                                                             
>>> <scenarioExclude>**/*Steps.java</scenarioExclude>
>>>                                                     </scenarioExcludes>
>>>                                             </configuration>
>>>                                             <goals>
>>>                                                     
>>> <goal>run-scenarios</goal>
>>>                                             </goals>
>>>                                     </execution>
>>>                                     <execution>
>>>                                             <id>render-reports</id>
>>>                                             
>>> <phase>post-integration-test</phase>
>>>                                             <configuration>
>>>                                                     <scope>test</scope>
>>>                                                     
>>> <classLoaderInjected>false</classLoaderInjected>
>>>                                                     <scenarioIncludes>
>>>                                                             
>>> <scenarioInclude>**/scenarios/*.java</scenarioInclude>
>>>                                                     </scenarioIncludes>
>>>                                                     <scenarioExcludes>
>>>                                                             
>>> <scenarioExclude>**/*Steps.java</scenarioExclude>
>>>                                                     </scenarioExcludes>
>>>                                                     
>>> <outputDirectory>${basedir}/target/jbehave-reports</outputDirectory>
>>>                                                     <formats>
>>>                                                             
>>> <format>txt</format>
>>>                                                             
>>> <format>html</format>
>>>                                                             
>>> <format>xml</format>
>>>                                                     </formats>
>>>                                                     <templateProperties>
>>>                                                             <property>
>>>                                                                     
>>> <name>defaultFormats</name>
>>>                                                                     
>>> <value>stats</value>
>>>                                                             </property>
>>>                                                             <property>
>>>                                                                     
>>> <name>renderedDirectory</name>
>>>                                                                     
>>> <value>rendered</value>
>>>                                                             </property>
>>>                                                     </templateProperties>
>>>                                                     
>>> <ignoreFailure>true</ignoreFailure>
>>>                                                     <batch>true</batch>
>>>                                             </configuration>
>>>                                             <goals>
>>>                                                     
>>> <goal>render-reports</goal>
>>>                                             </goals>
>>>                                     </execution>
>>>                             </executions>
>>>                     </plugin>
>>>             </plugins>
>>>     </build>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>    http://xircles.codehaus.org/manage_email
>>>
>>>
>>>
>>>       
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>   


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to