public class ANSIConsoleOutput extends ConsoleOutput
Story reporter that outputs as ANSI-coded text to System.out.
Modifier and Type | Class and Description |
---|---|
static class |
ANSIConsoleOutput.SGRCode |
PrintStreamOutput.Format
Constructor and Description |
---|
ANSIConsoleOutput() |
ANSIConsoleOutput(Keywords keywords) |
ANSIConsoleOutput(java.util.Properties outputPatterns,
Keywords keywords,
boolean reportFailureTrace) |
Modifier and Type | Method and Description |
---|---|
void |
assignCodeToEvent(java.lang.String eventKey,
ANSIConsoleOutput.SGRCode code) |
protected java.lang.String |
format(java.lang.String eventKey,
java.lang.String defaultPattern,
java.lang.Object... args)
Formats event output by key, usually equal to the method name.
|
afterExamples, afterScenario, afterStory, beforeExamples, beforeScenario, beforeStep, beforeStory, compressFailureTrace, doCompressFailureTrace, doReportFailureTrace, dryRun, escape, example, failed, failedOutcomes, formatTable, givenStories, givenStories, ignorable, lifecyle, lookupPattern, narrative, notPerformed, overwritePattern, pending, pendingMethods, print, reportFailureTrace, restarted, scenarioMeta, scenarioNotAllowed, storyCancelled, storyNotAllowed, successful, toString
public ANSIConsoleOutput()
public ANSIConsoleOutput(Keywords keywords)
public ANSIConsoleOutput(java.util.Properties outputPatterns, Keywords keywords, boolean reportFailureTrace)
protected java.lang.String format(java.lang.String eventKey, java.lang.String defaultPattern, java.lang.Object... args)
PrintStreamOutput
format
in class PrintStreamOutput
eventKey
- the event keydefaultPattern
- the default pattern to return if a custom pattern
is not foundargs
- the args used to format outputpublic void assignCodeToEvent(java.lang.String eventKey, ANSIConsoleOutput.SGRCode code)
Copyright © 2003-2014. All Rights Reserved.