1. General description
This document is now perfect and accurate, anyway, try to refer to jscoverage documentation.
1.1. Introduction
Jscove is a tool used to display code coverage for JavaScript projects, which is inherited from Jscoverage and replaced with C++/spidermonkey Java/rhino
Jscover the JavaScript, and then runs the post-insertion code in the browser, Jscover offers several options to perform:
1, the simplest is the server mode, put the post-insertion code on the Web server
2, another option is that you can use File-system mode, directly run the local JavaScript file
3, finally, in server mode, you can execute the--PROXY option, set a proxy server when there is Javascrpit code through the proxy server to execute
Server mode (Web and proxy) has two advantages:
- Ability to save coverage reports via file system
- Javascrpit information can be included in test reports that are not tested and not downloaded
1.2. installation package
Jscover is packaged in two jar files, the first option is to avoid class-path problems, especially with rhino-based non-standard version jscover
Jscover-all.jar contains all of the dependencies
Jscover.jar must be placed in the same directory as all dependent jar packages
These two jar packages are packaged and placed in the Target/dist directory.
The MAVEN version includes the Jscover.jar
1.3. Maven Plugin
There is a jscover available maven plugin that can be clicked at the following link Jscover-maven-plugin
This is the feature we are currently enhancing.
Jscover instructions for use-general instructions