com.github.tntim96:jscover-maven-plugin

Plugin to run web-tests (e.g. Jasmine, QUnit) with WebDriver and JSCover


Licenses
GPL-3.0/libpng-2.0

Documentation

JSCover-maven-plugin

Build Status codecov Maven Central License: GPL v2

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 (Firefox, Chrome)
  • Coverage thresholds
  • Multiple report formats (JSCover HTML, LCOV, Cobertura XML)
  • Ant style test inclusion and exclusions

Requires Java 11

See the server configuration here.

See the file configuration here.

Working examples

See JSCover-Samples.

Releasing

mvn -DperformRelease=true clean deploy

In case of error 'gpg: signing failed: Inappropriate ioctl for device' run

export GPG_TTY=$(tty)

Snapshots

Development snapshots on sonatype.

Verifying signatures

Generate signatures:

mvn clean 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 && mvn clean verify && mvn surefire-report:report-only -Daggregate=true