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.FormatNL| Constructor and Description |
|---|
ANSIConsoleOutput() |
ANSIConsoleOutput(Keywords keywords) |
ANSIConsoleOutput(Properties outputPatterns,
Keywords keywords,
boolean reportFailureTrace) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignCode(String key,
ANSIConsoleOutput.SGRCode code) |
protected String |
format(String key,
String defaultPattern,
Object... args)
Formats event output by key, usually equal to the method name.
|
void |
withHighlightCode(ANSIConsoleOutput.SGRCode code) |
afterExamples, afterGivenStories, afterScenario, afterStory, beforeExamples, beforeGivenStories, beforeScenario, beforeStep, beforeStory, comment, compressFailureTrace, doCompressFailureTrace, doReportFailureTrace, dryRun, escape, example, failed, failedOutcomes, formatTable, givenStories, givenStories, ignorable, lifecyle, lookupPattern, narrative, notPerformed, overwritePattern, pending, pendingMethods, print, print, reportFailureTrace, restarted, restartedStory, scenarioNotAllowed, storyCancelled, storyNotAllowed, successful, toString, transformPrintingTablebeforeScenario, scenarioMetapublic ANSIConsoleOutput()
public ANSIConsoleOutput(Keywords keywords)
public ANSIConsoleOutput(Properties outputPatterns, Keywords keywords, boolean reportFailureTrace)
public void assignCode(String key, ANSIConsoleOutput.SGRCode code)
public void withHighlightCode(ANSIConsoleOutput.SGRCode code)
protected String format(String key, String defaultPattern, Object... args)
PrintStreamOutputformat in class PrintStreamOutputkey - the event keydefaultPattern - the default pattern to return if a custom pattern
is not foundargs - the args used to format outputCopyright © 2003–2018. All rights reserved.