Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code coverage for nightwatch.js using Istanbul

Has anyone got code coverage to work for nightwatch.js with Istanbul. Any helpful links to the configuration will be appreciated.

like image 437
Vinit Asher Avatar asked Jun 24 '15 00:06

Vinit Asher


People also ask

What is the script command for Nightwatch?

Use the command: npm install --save-dev nightwatch chromedriver. 1.

What is Istanbul JS?

A collection of reporters, providing both terminal and HTML output: Support for the most popular JavaScript testing frameworks (see our tutorials). Support for instrumenting subprocesses, using the nyc command-line-interface.

What is code coverage in JavaScript?

Code coverage provides information about whether, and optionally how often certain parts of an application have been executed. It's commonly used to determine how thoroughly a test suite exercises a particular codebase.


1 Answers

nightwatch.js is a wrapper on Selenium. I believe what you attempting is not going to work with nightwatch.

See also Selenium: Is there any JS (JavaScript) code coverage tool which we can integrate with Selenium Server/RC where one user recommended JsTestDriver instead.

like image 126
natemcmaster Avatar answered Oct 11 '22 17:10

natemcmaster