Details
-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Won't Fix
-
Affects Version/s: 3.4.5
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Number of attachments :
Description
I recently wanted to add my own StoryReporter to every story and found it quite difficult.
It would be great if StoryReporterBuilder could have one of the following methods added
withStoryReporters(StoryReporter... storyReporters)
addStoryReporter(StoryReporter storyReporter)
The only way I could find was to override StoryReporterBuilder.build(String storyPath) and use a DelegatingStoryReporter to include my custom storyReporter(s).
Activity
Lance
made changes -
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Won't Fix [ 2 ] |
The StoryReporterBuilder provides the method withFormats(Formats...) for this purpose. The Format implementation allows you to create your instance of StoryReporter.