Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
XML reporter creates invalid xml for stories with narrative in 4.x branch
Description
In stories with narrative, the normal XML reporter creates invalid xml in 4.x since the narrative tag comes before the story tag. The shortest story example to show the issue is this:
Narrative:
In order to xxx
As a xxx
I want to xxx
Scenario: xxx
In stories with narrative, the normal XML reporter creates invalid xml in 4.x since the narrative tag comes before the story tag.
The shortest story example to show the issue is this:
Narrative: In order to xxx As a xxx I want to xxx Scenario: xxx
(the story was initially reported for https://jbehave.atlassian.net/browse/JBEHAVE-853#icft=JBEHAVE-853 by Zihao Yu, but this issue was more relative to version issues, since it works with 3.7.3, so I decided to create a new issue mentioning 4.x directly)