Lev Boichenko
Lev Boichenko

Reputation: 607

How to customize test report in nightwatch?

Nightwatch has xml junit report by default, but I need to customize that report and can't find how to do. For example, test report should display count of tests.

Upvotes: 0

Views: 1484

Answers (2)

udhaya kumar
udhaya kumar

Reputation: 136

You can use the following to generate custom reports in nightwatch using handlebars and nightwatch-html-reporter HTML Report

You can will get the report of in Html.

To get the count in that report you can use any of assertion methods in nightwatch then it should be in the report.

Upvotes: 1

QualiT
QualiT

Reputation: 1955

test_runner.js is the file you would edit to customize your tests.

Upvotes: 0

Related Questions