The latest release introduces a new built-in HTML reporter and several new API commands based on the Chrome Devtools Protocol for mocking network responses, capturing logs, and more.
Improvements
- Added new integrated HTML reporter with test status, assertion logs & raw HTTP logs - #3223; read more
- Added built-in API commands for working with the Chrome Devtools Protocol - #3208:
- Added
--mocha
cli flag to quickly switch the test runner to use Mocha - Added
--open
cli flag to open the generated HTML report automatically - Added new integrated JSON reporter
- Added support for using multiple reporters - #3003; to specify more reporters just add several
--reporter
arguments, e.g.:nightwatch --reporter html --reporter junit --reporter custom-reporter