Skip to content

tarnowsc/JSCover-maven-plugin

 
 

Repository files navigation

JSCover-maven-plugin

Build Status Dependency Status

Maven plugins for JSCover.

This plugin has the following goals:

  • jscover-file:instrument instrument the JavaScript on the file-system
  • jscover-file:jscover run the JavaScript tests and generate JavaScript code coverage using file-mode
  • jscover-server:jscover run the JavaScript tests and generate JavaScript code coverage using server-mode

Automatic running of tests currently supports:

  • Server and file-mode plugins (generate your coverage reports without ever running a server)
  • QUnit, Jasmine, Jasmine2, Mocha and custom test frameworks
  • WebDriver drivers (e.g. PhantomJS, Firefox, Chrome, IE, etc...)
  • Coverage thresholds
  • Multiple report formats (JSCover HTML, LCOV, Cobertura XML)
  • Ant style test inclusion and exclusions

See the server configuration here.

See the file configuration here.

Working examples

See JSCover-Samples.

Releasing

mvn clean source:jar javadoc:jar deploy

Snapshots

Development snapshots on sonatype.

Verifying signatures

Generate signatures:

mvn clean source:jar javadoc:jar install

Verify:

find . -name "*.asc" -exec gpg -v --verify '{}' \;

Count signatures:

find . -name "*.asc" | wc -l

Checking for dependency/plugin updates

mvn versions:display-dependency-updates

mvn versions:display-plugin-updates

Running tests

mvn clean cobertura:cobertura -Dcobertura.aggregate=true && mvn surefire-report:report -DskipTests=true -Daggregate=true

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.4%
  • Java 15.6%
  • CSS 1.8%
  • HTML 1.2%