Skip to content

tntim96/JSCover-maven-plugin

Repository files navigation

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

Update POM version

mvn versions:set -DnewVersion=2.0.18

Release

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published