public class ANSIConsoleOutput extends ConsoleOutput
Story reporter that outputs as ANSI-coded text to System.out.
Uses SGRCodes to decorate ConsoleOutput format patterns.
PrintStreamOutput.FormatNL| Constructor and Description |
|---|
ANSIConsoleOutput() |
ANSIConsoleOutput(Keywords keywords) |
ANSIConsoleOutput(Properties outputPatterns,
Keywords keywords,
boolean reportFailureTrace) |
| Modifier and Type | Method and Description |
|---|---|
ANSIConsoleOutput |
assignCode(String key,
SGRCodes.SGRCode code) |
protected String |
format(String key,
String defaultPattern,
Object... args)
Formats event output by key, usually equal to the method name.
|
ANSIConsoleOutput |
withCodes(SGRCodes codes) |
afterExamples, afterGivenStories, afterScenario, afterStory, afterStorySteps, beforeExamples, beforeGivenStories, beforeScenario, beforeStep, beforeStory, beforeStorySteps, comment, compressFailureTrace, doCompressFailureTrace, doReportFailureTrace, dryRun, escape, example, failed, failedOutcomes, formatTable, formatVerbatim, givenStories, givenStories, ignorable, lifecyle, lookupPattern, narrative, notPerformed, overwritePattern, pending, pendingMethods, print, print, reportFailureTrace, restarted, restartedStory, scenarioNotAllowed, storyCancelled, storyNotAllowed, successful, toString, transformPrintingTable, transformPrintingVerbatimafterScenarioSteps, beforeScenario, beforeScenarioSteps, example, scenarioMetapublic ANSIConsoleOutput()
public ANSIConsoleOutput(Keywords keywords)
public ANSIConsoleOutput(Properties outputPatterns, Keywords keywords, boolean reportFailureTrace)
public ANSIConsoleOutput assignCode(String key, SGRCodes.SGRCode code)
public ANSIConsoleOutput withCodes(SGRCodes codes)
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–2019. All rights reserved.