Details
-
Type: Bug
-
Status: Closed
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.1
-
Component/s: Core, Maven Plugin
-
Labels:None
-
Environment:Patch applied to SVN version 736
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
The patch fixes maven plugin and story runner bugs described in http://archive.jbehave.codehaus.org/dev/465151AA.6020700%40xait.no.
The patch also fix a bug when printing stories: when the story and scenario classes are anonymous, numbers are printed. With this patch the name of the story and the scenario(s) are printed.
1. Apply the patch at jbehave/trunk/
2. run "ant build"
3. run "mvn install"
4. run "mvn integration-test" at plugins/maven/src/it
5. verify that the maven build gives the same as the result further below.
6. remember to add the interface "Named" to Subversion. Feel free to place it somewhere else than org/jbehave/core/story/domain
***Maven results:
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] jBehave Maven Plugin Integration Test 1
[INFO] jBehave Maven Plugin Integration Test 2
[INFO] jBehave Maven Plugin Integration Test 3
[INFO] jBehave Maven Plugin Integration Test Reactor
[INFO] ----------------------------------------------------------------------------
[INFO] Building jBehave Maven Plugin Integration Test 1
[INFO] task-segment: [integration-test]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 5 source files to C:\work\svn_workspace\jbehaveTrunkClean\plugins\maven\src\it\test1\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: C:\work\svn_workspace\jbehaveTrunkClean\plugins\maven\src\it\test1\target\jbehave-maven-plugin-it-test1-1.1-SNAPSHOT.jar
[INFO] [jbehave:run-behaviours
]
Done something
.
Time: 0.015s
Total: 1. Success!
[INFO] ----------------------------------------------------------------------------
[INFO] Building jBehave Maven Plugin Integration Test 2
[INFO] task-segment: [integration-test]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 5 source files to C:\work\svn_workspace\jbehaveTrunkClean\plugins\maven\src\it\test2\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: C:\work\svn_workspace\jbehaveTrunkClean\plugins\maven\src\it\test2\target\jbehave-maven-plugin-it-test2-1.1-SNAPSHOT.jar
[INFO] [jbehave:run-story
]
Given org.jbehave.it.stories.givens.ATestToBeRun
When org.jbehave.it.stories.events.UserRunsTest
Then org.jbehave.it.stories.outcomes.ATestIsRunSuccessfully
.
Time: 0.0s
Total: 1. Success!
[INFO] ----------------------------------------------------------------------------
[INFO] Building jBehave Maven Plugin Integration Test 3
[INFO] task-segment: [integration-test]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 5 source files to C:\work\svn_workspace\jbehaveTrunkClean\plugins\maven\src\it\test3\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: C:\work\svn_workspace\jbehaveTrunkClean\plugins\maven\src\it\test3\target\jbehave-maven-plugin-it-test3-1.1-SNAPSHOT.jar
[INFO] [jbehave:print-story
]
Story: user runs integration test
As a
I want
So that
Scenario: user runs test successfully
Given a test to be run
When user runs test
Then a test is run successfully
[INFO] ----------------------------------------------------------------------------
[INFO] Building jBehave Maven Plugin Integration Test Reactor
[INFO] task-segment: [integration-test]
[INFO] ----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] jBehave Maven Plugin Integration Test 1 ............... SUCCESS [2.812s]
[INFO] jBehave Maven Plugin Integration Test 2 ............... SUCCESS [0.969s]
[INFO] jBehave Maven Plugin Integration Test 3 ............... SUCCESS [1.000s]
[INFO] jBehave Maven Plugin Integration Test Reactor ......... SUCCESS [1.093s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Thu May 31 12:03:01 CEST 2007
[INFO] Final Memory: 8M/16M
[INFO] ------------------------------------------------------------------------
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Mauro Talevi [ maurotalevi ] |
Fix Version/s | 1.1 [ 13339 ] |
Summary | Patch fixing following bug: Maven JBehave plugin does not run text story files | Maven JBehave plugin does not run text story files |
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] |
Component/s | Story runner [ 11084 ] |
Applied with thanks!