1.0.0-rc.1 • Published 4 years ago

wdio-cucumber-console-reporter v1.0.0-rc.1

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

Install

npm install --save-dev wdio-cucumber-console-reporter

Configuration

Add the following lines to reporters section in webdriver.io configuration file:

 reporters: [
     [CucumberConsoleReporter, {}]
 ]

Options

OptionTypeDescription
logStagestringSpecify at what stage should the reporter write the log. This is useful for tests that run in parallel, so that the step logs don't mix together. Valid options are feature, scenario, step
successMessagestringText that should be written on success. This is useful if you need to, for example, parse logs for success or failure.
failureMessagestringText that should be written on failure. This is useful if you need to, for example, parse logs for success or failure.
showTimestampbooleanShow timestamp with every step.
timestampFormatstringTimestamp format. For example hh:mm:ss
reporters: [
    [CucumberConsoleReporter,
        {
            logStage: 'scenario', // feature | scenario | step
            successMessage: 'ALL TESTS PASSED',
            failureMessage: 'SOME TESTS FAILED',
            showTimestamp: true,
            timestampFormat: 'hh:mm:ss'
        }
    ]
]