# JSCover **Repository Path**: mirrors/JSCover ## Basic Information - **Project Name**: JSCover - **Description**: JSCover 是一个 JavaScript 代码覆盖率工具,用于测量行、分支和函数的覆盖率 - **Primary Language**: Java - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/jscover - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2020-03-25 - **Last Updated**: 2025-09-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [JSCover](http://tntim96.github.io/JSCover) - A JavaScript code coverage measurement tool. ================================ [![Build Status](https://github.com/tntim96/JSCover/workflows/Java-CI/badge.svg)](https://github.com/tntim96/JSCover/actions?query=workflow%3A%22Java-CI%22) [![codecov](https://codecov.io/gh/tntim96/JSCover/branch/master/graph/badge.svg)](https://codecov.io/gh/tntim96/JSCover) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.tntim96/JSCover/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.tntim96/JSCover) [![License: GPL v2](https://img.shields.io/badge/License-GPL%20v2-green.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://matrix.to/#/#JSCover_Lobby:gitter.im) JSCover is an easy-to-use JavaScript code coverage measuring tool. It is an enhanced version of the popular [JSCoverage](http://siliconforks.com/jscoverage/) tool, having added several features including **branch coverage**, **LCOV** and **Cobertura XML** reports for CI integration, hooks for automated tests and **HTML Local Storage** to maintain coverage data without the use of iFrames or JavaScript opened windows. It's distinguishing factor from other JavaScript coverage tools is that it easily runs in any browser (supporting JavaScript) allowing coverage measurement of tests that include DOM interaction. It can be run with most tools (e.g. [Jasmine](http://jasmine.github.io/), [QUnit](http://qunitjs.com/), [Mocha](http://mochajs.org/), etc...). Development ----------- Development with JSCover is simple (clean check-out and build should just work). It is an Ant build using Maven's dependency management. What you need: * Java 21+ (runtime requires Java 21+) * Ant (developed with version 1.10.8) Most development has been done with IntelliJ ultimate edition, and some with Eclipse and IntelliJ community edition. Project files for IDEs are checked in, but any editor can be used. Before checking in any changes, be sure to run `ant pre-commit` which runs the full build and test suite, and enforces coverage limits on the combined unit and integration tests as well as on the combined unit, integration and acceptance tests.