Jscover instructions for use-general instructions

Source: Internet
Author: User

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:

  1. Ability to save coverage reports via file system
  2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.