Details
-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 3.5.4
-
Fix Version/s: 3.6
-
Component/s: Hudson Support, Jenkins Support
-
Labels:None
-
Environment:jenkins 1.442, Jenkins xUnit plugin 1.32, JBehave Jenkins Plugin 3.5.4
-
Number of attachments :
Description
When I run a story that has a comment as the first line of the text, the jbehave/xunit display in Jenkins takes the comment as test name and misses the story file name.
{{!-- comment
Scenario: User visits home page
!-- a very simple test
Given user is on Home page
Then Home page is shown
}}
the resulting path is then (root)/!-- comment/User visits home page
Activity
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Summary | a comment before "Scenario" ends up as package name in jbehave-plugin-jenkins | Title before "Scenario" ends up as package name |
Fix Version/s | 3.6 [ 17721 ] | |
Component/s | Hudson Support [ 14606 ] |
Mauro Talevi
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Comments are treated by JBehave as ignorable steps, but only if they appear in a scenario. Anything before a Scenario keyword is not consider a step, and it depends on the context. If nothing else is present, it'll end up being part of the story description.