mynamedaike / JSCover-maven-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 81.6%Language:Java 15.7%Language:CSS 1.8%Language:HTML 0.9%Language:Shell 0.0%