Using protractor-cucumber-framework
How do I modify the console output of the CucumberJs that will output the steps during run time.
Example Scenario in Feature:
Given that Home Page is Displayed
When I Click Sales Button at Home Page
Then Sales Page is Displayed
When Running the Test, it should output the ff. in the console.
Given that Home Page is Displayed - Passed
When I Click Sales Button at Home Page - Passed
Then Sales Page is Displayed - Passed
Change protractor conf.js to specify a formatter in cucumberOpts
as following:
exports.config = {
cucumberOpts: {
format: [require.resolve('cucumber-pretty')]
}}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With