}
private ForkingStreamConsumer getForkingStreamConsumer(boolean showHeading,
boolean showFooter,
boolean redirectTestOutputToFile) {
OutputConsumer outputConsumer = new StandardOutputConsumer();
if (redirectTestOutputToFile) {
outputConsumer = new FileOutputConsumerProxy(outputConsumer, getReportsDirectory());
}