JSCover is a tool that measures code coverage for JavaScript programs.
Java JavaScript Other
Permalink
Failed to load latest commit information.
.settings Swap to official Rhino release 1.7.6 and set minimum Java version to 1.6 Apr 17, 2015
config Improve error messages and remove duplication Sep 11, 2013
data Use tntim96 Maven repository version of Rhino Jan 15, 2014
doc Remove branch source from manual Feb 14, 2017
examples Improve run-jscover-qunit.js and run-jscover-jasmine2.js Dec 29, 2015
lib Remove need for user to add maven-ant-tasks-2.1.3.jar to ant lib dir… Feb 10, 2014
src Upgrade HtmlUnit 2.24 to 2.25, Mockito 2.7.5 to 2.7.11 Feb 23, 2017
.classpath Swap to official Rhino release 1.7.6 and set minimum Java version to 1.6 Apr 17, 2015
.gitignore Add file name to log config Aug 8, 2013
.project Use Ant's Maven task for dependency management Jun 12, 2013
.travis.yml Fix Travis-CI build (now JDK8 only due to HtmlUnit 2.25) Feb 23, 2017
History.md Upgrade HtmlUnit 2.24 to 2.25, Mockito 2.7.5 to 2.7.11 Feb 23, 2017
JSCover.iml Upgrade HtmlUnit 2.24 to 2.25, Mockito 2.7.5 to 2.7.11 Feb 23, 2017
JSCover.ipr Upgrade HtmlUnit 2.24 to 2.25, Mockito 2.7.5 to 2.7.11 Feb 23, 2017
README.md Update build notes in readme Feb 23, 2017
bookmarks.html Release version 1.1.0 Feb 11, 2017
build-maven.xml Exclude dependencies from Maven JSCover JAR Feb 22, 2014
build.properties Tidy properties Jun 13, 2013
build.xml Make ZIP download items explicit Feb 11, 2017
log.properties Swap to official Rhino release 1.7.6 and set minimum Java version to 1.6 Apr 16, 2015
pom.xml Upgrade HtmlUnit 2.24 to 2.25, Mockito 2.7.5 to 2.7.11 Feb 23, 2017

README.md

JSCover - A JavaScript code coverage measurement tool.

Build Status

JSCover is an easy-to-use JavaScript code coverage measuring tool. It is an enhanced version of the popular 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, QUnit, Mocha, 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 1.8+ (runtime requires Java 1.6+)
  • Ant (developed with version 1.9.2 to 1.9.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.