Hi Graham,
withReporters() is a new method added in 3.6 (you can use one of the
betas). In 3.5.x you only have withFormats() so you'd need to define
your own format, e.g.
public static final Format TXT = new Format("TXT") {
@Override
public StoryReporter createStoryReporter(FilePrintStreamFactory
factory,
StoryReporterBuilder storyReporterBuilder) {
factory.useConfiguration(storyReporterBuilder.fileConfiguration("txt"));
return new TxtOutput(factory.createPrintStream(),
storyReporterBuilder.keywords()).doReportFailureTrace(
storyReporterBuilder.reportFailureTrace()).doCompressFailureTrace(
storyReporterBuilder.compressFailureTrace());
}
};
On 21/02/2012 11:41, Graham Abell wrote:
Hi Alex,
Yeah, I have the withDefaultFormats() but I can't see a
withReporters() method, I can't see it in the api either
http://jbehave.org/reference/stable/javadoc/core/org/jbehave/core/reporters/StoryReporterBuilder.html
am I missing something?
cheers,
graham
On 21 February 2012 11:00, Alex Lehmann <[email protected]
<mailto:[email protected]>> wrote:
your runner class has probably a statement using new
StoryReporterBuilder() and calling .withFormats and/or
.withDefaultFormats() , you can add .withReporters(yourReporter)
On 21.02.2012 11:45, Graham Abell wrote:
Having implemented my own StoryReporter, how do I specify that
it gets used?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email