Details
Description
PostStoryStatisticsCollector should be counting scenarios in a story considering whether it's a givenStory or not. It should be displaying the number of scenarios executed in the story, not including int the count those executed in the GivenStories.
Activity

Field | Original Value | New Value |
---|---|---|
Summary | Reports contain incorrect data with multiple scenarios in one story when using GivenStories. | Count scenarios in a story separately from those in the GivenStories. |
Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
Fix Version/s | 3.2 [ 16757 ] | |
Description | This is because PostStoryStatisticsCollector is resetting and writing the data on calls to beforeStory/afterStory irrespective of whether givenStory is set or not. It's also displaying the total number of scenarios executed, including the count from the GivenStories, rather than just the number of scenarios in the story. |
PostStoryStatisticsCollector should be counting scenarios in a story considering whether it's a givenStory or not. It should be displaying the number of scenarios executed in the story, not including int the count those executed in the GivenStories.
|
Component/s | Core [ 11086 ] |

Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
I've pushed to patches onto github for this, on my master branch
https://github.com/dgodfrey/jbehave-core/commits/master